summaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-01-03 02:29:45 +0100
committerFelix Fietkau <nbd@openwrt.org>2013-01-03 02:29:45 +0100
commit7e44c75338854297431cce9470160b4dd3974766 (patch)
treea530c095028cdfe91771734858113f901eda6ff7 /client.c
parent2bef561c890f275ce3b785e6abdb3eda28c96aa8 (diff)
add missing n_clients decrement
Diffstat (limited to 'client.c')
-rw-r--r--client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/client.c b/client.c
index b673153..6a0c4bf 100644
--- 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);