summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}