summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/Messenger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c
index 2bebae92..6e209f4d 100644
--- a/toxcore/Messenger.c
+++ b/toxcore/Messenger.c
@@ -1618,7 +1618,7 @@ static void do_reqchunk_filecb(Messenger *m, int32_t friendnumber, void *userdat
1618 // 1618 //
1619 // TODO(zoff99): Fix this to exit the loop properly when we're done 1619 // TODO(zoff99): Fix this to exit the loop properly when we're done
1620 // requesting all chunks for all file transfers. 1620 // requesting all chunks for all file transfers.
1621 const uint32_t MAX_FT_LOOPS = 4; 1621 const uint32_t MAX_FT_LOOPS = 16;
1622 1622
1623 while (((free_slots > 0) || loop_counter == 0) && any_active_fts && (loop_counter < MAX_FT_LOOPS)) { 1623 while (((free_slots > 0) || loop_counter == 0) && any_active_fts && (loop_counter < MAX_FT_LOOPS)) {
1624 any_active_fts = do_all_filetransfers(m, friendnumber, userdata, &free_slots); 1624 any_active_fts = do_all_filetransfers(m, friendnumber, userdata, &free_slots);