do not stop activating clients when direct download starts

Do not break the loop after activating one client.

Keep activating clients that can be redirected. If no redirection is
found, then start direct download for this client (only one) but keep
looping for clients that can be redirected.
master
tiptorrent development team 2021-09-19 23:03:31 +02:00
parent 44287f9e67
commit 7b938edee2
1 changed files with 3 additions and 1 deletions

View File

@ -367,7 +367,9 @@ void tip_client_activate_pending(bool redirect_only)
ev_io_start(tip_main_loop, &cli->io);
ev_timer_again(tip_main_loop, &cli->timer);
cli->state = TIP_CLIENT_PROCESSING_REQUEST_2;
break;
/* only activate one direct download from server. */
if (!redirected)
redirect_only = true;
}
}