diff options
author | tiptorrent development team <tiptorrent@soleta.eu> | 2021-09-20 00:41:58 +0200 |
---|---|---|
committer | tiptorrent development team <tiptorrent@soleta.eu> | 2021-09-29 15:49:03 +0200 |
commit | 88e02d424b042ad35880670fe4c7c0643073de79 (patch) | |
tree | c489b63f6d9250a72a9f6dd2a7cd74707a252638 /src/core.c | |
parent | 7b938edee23802d2ac22461c449d0d6444d09880 (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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } } |