ratox

FIFO based tox client
git clone git://git.2f30.org/ratox
Log | Files | Refs | README | LICENSE

commit c28164d21d377a4e5327ddcc2bedc9cd356f772a
parent d06387c0acb54cd780ecd9eef921acef41f30733
Author: sin <sin@2f30.org>
Date:   Wed, 24 Sep 2014 16:22:37 +0100

Cancel transfers unconditionally if we lose connection

Diffstat:
Mratox.c | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/ratox.c b/ratox.c @@ -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; }