From 88e02d424b042ad35880670fe4c7c0643073de79 Mon Sep 17 00:00:00 2001 From: tiptorrent development team Date: Mon, 20 Sep 2021 00:41:58 +0200 Subject: activate pending clients only for close direct download if a client is redirected, do not exercise the client activation loop. --- src/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core.c') diff --git a/src/core.c b/src/core.c index e0b1d44..688f059 100644 --- a/src/core.c +++ b/src/core.c @@ -51,7 +51,8 @@ static void tip_client_release(struct ev_loop *loop, struct tip_client *cli) if (cli->method == TIP_METHOD_GET) { if (tip_client_large_file(cli)) { num_clients--; - tip_client_activate_pending(false); + if (!cli->redirect) + tip_client_activate_pending(false); } } -- cgit v1.2.3-18-g5258