add missing n_clients decrement
authorFelix Fietkau <nbd@openwrt.org>
Thu, 3 Jan 2013 01:29:45 +0000 (02:29 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 3 Jan 2013 01:29:45 +0000 (02:29 +0100)
client.c

index b673153edab48490ada82fd15e3f28c6dd6865bb..6a0c4bf9cf4a0ab9b1ead291338151681c6316fe 100644 (file)
--- a/client.c
+++ b/client.c
@@ -354,6 +354,7 @@ static void client_read_cb(struct client *cl)
 
 static void client_close(struct client *cl)
 {
+       n_clients--;
        uh_dispatch_done(cl);
        uloop_timeout_cancel(&cl->timeout);
        ustream_free(&cl->sfd.stream);