Skip to content

Commit

Permalink
Restyled by astyle
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits committed Jan 2, 2021
1 parent 40c5b05 commit 6a5f59c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion toxcore/Messenger.c
Original file line number Diff line number Diff line change
Expand Up @@ -1552,10 +1552,11 @@ static void do_reqchunk_filecb(Messenger *m, int32_t friendnumber, void *userdat
// Request up to that number of chunks per file from the client
const uint32_t max_ft_loops = 16;

for(uint32_t i = 0; i < max_ft_loops; i++) {
for (uint32_t i = 0; i < max_ft_loops; i++) {
if (!do_all_filetransfers(m, friendnumber, userdata, &free_slots)) {
break;
}

if (free_slots == 0) {
// stop when the buffer is full enough
break;
Expand Down

0 comments on commit 6a5f59c

Please sign in to comment.