diff options
Diffstat (limited to 'src/empathy-ft-manager.c')
-rw-r--r-- | src/empathy-ft-manager.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/empathy-ft-manager.c b/src/empathy-ft-manager.c index 858b21208..7b3e88a24 100644 --- a/src/empathy-ft-manager.c +++ b/src/empathy-ft-manager.c @@ -491,16 +491,20 @@ ft_handler_transfer_done_cb (EmpathyFTHandler *handler, EmpathyTpFile *tp_file, EmpathyFTManager *manager) { - DEBUG ("Transfer done"); - if (empathy_ft_handler_is_incoming (handler) && empathy_ft_handler_get_use_hash (handler)) { - /* connect to the signal */ + DEBUG ("Transfer done, waiting for hashing-started"); + + /* connect to the signal and return early */ g_signal_connect (handler, "hashing-started", G_CALLBACK (ft_handler_hashing_started_cb), manager); + + return; } + DEBUG ("Transfer done, no hashing"); + do_real_transfer_done (manager, handler); } |