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 b673153..6a0c4bf 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)
 {
 
 static void client_close(struct client *cl)
 {
+       n_clients--;
        uh_dispatch_done(cl);
        uloop_timeout_cancel(&cl->timeout);
        ustream_free(&cl->sfd.stream);
        uh_dispatch_done(cl);
        uloop_timeout_cancel(&cl->timeout);
        ustream_free(&cl->sfd.stream);