From c28164d21d377a4e5327ddcc2bedc9cd356f772a Mon Sep 17 00:00:00 2001 From: sin Date: Wed, 24 Sep 2014 16:22:37 +0100 Subject: Cancel transfers unconditionally if we lose connection --- ratox.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ratox.c') diff --git a/ratox.c b/ratox.c index e6dbe68..00f609d 100644 --- 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; } -- cgit v1.2.3