summaryrefslogtreecommitdiffstats
path: root/src/handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/handler.c')
-rw-r--r--src/handler.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/handler.c b/src/handler.c
index 36d2628..b283ea6 100644
--- a/src/handler.c
+++ b/src/handler.c
@@ -107,13 +107,15 @@ int tip_client_state_process_payload(struct tip_client *cli)
return 0;
}
- cli->allow_redirect = allow_redirect;
-
- num_clients++;
- if (tip_client_large_file(cli) && num_clients > max_clients) {
- if (!tip_client_redirect(cli)) {
- tip_client_pending(cli);
- return 1;
+ if (tip_client_large_file(cli)) {
+ cli->allow_redirect = allow_redirect;
+
+ num_clients++;
+ if (num_clients > max_clients) {
+ if (!tip_client_redirect(cli)) {
+ tip_client_pending(cli);
+ return 1;
+ }
}
}