Commit 8751048de0148c4757c8e2d0f5e6976da6b1ee26
1 parent
5cc754bc
Exists in
master
and in
1 other branch
FT Worker wasn't stopping pulse on failed transfer.
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
src/filetransfer/worker.c
| ... | ... | @@ -342,6 +342,9 @@ |
| 342 | 342 | // Try to get more detailed info. |
| 343 | 343 | const gchar * description = NULL; |
| 344 | 344 | |
| 345 | + pulse_stop(cfg->worker); | |
| 346 | + timer_stop(cfg->worker); | |
| 347 | + | |
| 345 | 348 | if(cfg->length) |
| 346 | 349 | { |
| 347 | 350 | gtk_entry_set_printf(cfg->worker->field[PROGRESS_FIELD_TOTAL],"%lu",cfg->length); |
| ... | ... | @@ -389,9 +392,6 @@ |
| 389 | 392 | |
| 390 | 393 | strcpy(state->msg,msg); |
| 391 | 394 | |
| 392 | - pulse_stop(state->worker); | |
| 393 | - timer_stop(state->worker); | |
| 394 | - | |
| 395 | 395 | gdk_threads_add_idle_full(G_PRIORITY_LOW,(GSourceFunc) bg_emit_complete, state, g_free); |
| 396 | 396 | |
| 397 | 397 | } | ... | ... |