summaryrefslogtreecommitdiffstats
path: root/src/core.c
diff options
context:
space:
mode:
authortiptorrent development team <tiptorrent@soleta.eu>2021-09-20 00:41:58 +0200
committertiptorrent development team <tiptorrent@soleta.eu>2021-09-29 15:49:03 +0200
commit88e02d424b042ad35880670fe4c7c0643073de79 (patch)
treec489b63f6d9250a72a9f6dd2a7cd74707a252638 /src/core.c
parent7b938edee23802d2ac22461c449d0d6444d09880 (diff)
activate pending clients only for close direct download
if a client is redirected, do not exercise the client activation loop.
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c3
1 files changed, 2 insertions, 1 deletions
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);
}
}