diff options
author | Cosimo Cecchi <cosimo.cecchi@collabora.co.uk> | 2009-05-05 23:42:23 +0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2009-06-01 23:47:39 +0800 |
commit | 50577c500cd3a4ed96e024383c720264b130b416 (patch) | |
tree | 3fad71d2f7a57649fb8ba6bd27f5c7be01574aa3 /libempathy/empathy-ft-handler.c | |
parent | 53073da65b919bd68a26e5e0e276ec5ba15f51ea (diff) | |
download | gsoc2013-empathy-50577c500cd3a4ed96e024383c720264b130b416.tar gsoc2013-empathy-50577c500cd3a4ed96e024383c720264b130b416.tar.gz gsoc2013-empathy-50577c500cd3a4ed96e024383c720264b130b416.tar.bz2 gsoc2013-empathy-50577c500cd3a4ed96e024383c720264b130b416.tar.lz gsoc2013-empathy-50577c500cd3a4ed96e024383c720264b130b416.tar.xz gsoc2013-empathy-50577c500cd3a4ed96e024383c720264b130b416.tar.zst gsoc2013-empathy-50577c500cd3a4ed96e024383c720264b130b416.zip |
Ensure the callbacks are only run once
Also ensure that we get no progress callbacks after the transfer has
been cancelled.
Diffstat (limited to 'libempathy/empathy-ft-handler.c')
-rw-r--r-- | libempathy/empathy-ft-handler.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libempathy/empathy-ft-handler.c b/libempathy/empathy-ft-handler.c index 6746f8127..b1861f6dd 100644 --- a/libempathy/empathy-ft-handler.c +++ b/libempathy/empathy-ft-handler.c @@ -419,6 +419,9 @@ ft_transfer_progress_callback (EmpathyTpFile *tp_file, EmpathyFTHandler *handler = user_data; EmpathyFTHandlerPriv *priv = GET_PRIV (handler); + if (empathy_ft_handler_is_cancelled (handler)) + return; + if (transferred_bytes == 0) { priv->last_update_time = empathy_time_get_current (); |