activate pending clients only for close direct download

if a client is redirected, do not exercise the client activation loop.
master
tiptorrent development team 2021-09-20 00:41:58 +02:00
parent 7b938edee2
commit 88e02d424b
1 changed files with 2 additions and 1 deletions

View File

@ -51,6 +51,7 @@ static void tip_client_release(struct ev_loop *loop, struct tip_client *cli)
if (cli->method == TIP_METHOD_GET) { if (cli->method == TIP_METHOD_GET) {
if (tip_client_large_file(cli)) { if (tip_client_large_file(cli)) {
num_clients--; num_clients--;
if (!cli->redirect)
tip_client_activate_pending(false); tip_client_activate_pending(false);
} }
} }