diff options
author | sin <sin@2f30.org> | 2014-09-24 16:22:37 +0100 |
---|---|---|
committer | sin <sin@2f30.org> | 2014-09-24 16:22:37 +0100 |
commit | c28164d21d377a4e5327ddcc2bedc9cd356f772a (patch) | |
tree | 9f64d9a0010e2b1910df6a4296a48ec081d3b176 | |
parent | d06387c0acb54cd780ecd9eef921acef41f30733 (diff) |
Cancel transfers unconditionally if we lose connection
-rw-r--r-- | ratox.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -1166,10 +1166,8 @@ loop(void) printout("Connected to DHT\n"); /* Cancel any pending transfers */ TAILQ_FOREACH(f, &friendhead, entry) { - if (tox_get_friend_connection_status(tox, f->fid) == 0) { - canceltxtransfer(f); - cancelrxtransfer(f); - } + canceltxtransfer(f); + cancelrxtransfer(f); } connected = 1; } |