summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/handler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/handler.c b/src/handler.c
index 982ad02..2b9c6a0 100644
--- a/src/handler.c
+++ b/src/handler.c
@@ -160,8 +160,8 @@ int tip_client_state_process_payload(struct tip_client *cli)
cli->allow_redirect = allow_redirect;
num_clients++;
- if (num_clients > max_clients) {
- if (!tip_client_redirect(cli)) {
+ if (!tip_client_redirect(cli)) {
+ if (num_clients > max_clients) {
tip_client_pending(cli);
return 1;
}