summaryrefslogtreecommitdiffstats
path: root/src/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core.c b/src/core.c
index 113eb1e..45853d9 100644
--- a/src/core.c
+++ b/src/core.c
@@ -49,7 +49,7 @@ static void tip_client_release(struct ev_loop *loop, struct tip_client *cli)
free((void *)cli->path);
if (cli->method == TIP_METHOD_GET) {
- if (tip_client_large_file(cli)) {
+ if (!tip_client_checksum_file(cli)) {
num_clients--;
if (!cli->redirect)
tip_client_activate_pending(false);
@@ -192,7 +192,7 @@ static void tip_client_read_cb(struct ev_loop *loop, struct ev_io *io, int event
}
return;
shutdown:
- if (cli->size > FILE_SIZE_THRESHOLD)
+ if (!tip_client_checksum_file(cli))
tip_client_redirect_create(cli);
close:
tip_client_release(loop, cli);