summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-09-24 16:22:37 +0100
committersin <sin@2f30.org>2014-09-24 16:22:37 +0100
commitc28164d21d377a4e5327ddcc2bedc9cd356f772a (patch)
tree9f64d9a0010e2b1910df6a4296a48ec081d3b176 /ratox.c
parentd06387c0acb54cd780ecd9eef921acef41f30733 (diff)
Cancel transfers unconditionally if we lose connection
Diffstat (limited to 'ratox.c')
-rw-r--r--ratox.c6
1 files changed, 2 insertions, 4 deletions
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;
}