tCancel transfers unconditionally if we lose connection - ratox - FIFO based tox client
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit c28164d21d377a4e5327ddcc2bedc9cd356f772a
(DIR) parent d06387c0acb54cd780ecd9eef921acef41f30733
(HTM) Author: sin <sin@2f30.org>
Date: Wed, 24 Sep 2014 16:22:37 +0100
Cancel transfers unconditionally if we lose connection
Diffstat:
M ratox.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/ratox.c b/ratox.c
t@@ -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;
}