diff options
Diffstat (limited to 'src/core.c')
-rw-r--r-- | src/core.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -47,10 +47,12 @@ static void tip_client_release(struct ev_loop *loop, struct tip_client *cli) free((void *)cli->uri); free((void *)cli->path); - free(cli); num_clients--; - tip_client_activate_pending(); + if (tip_client_large_file(cli)) + tip_client_activate_pending(); + + free(cli); } static int tip_client_payload_too_large(struct tip_client *cli) |