From 97093e6627e11ba12c7581f505774303f8fe6b8f Mon Sep 17 00:00:00 2001 From: Louis Huang Date: Wed, 17 Apr 2013 15:36:32 +0800 Subject: [PATCH] Fix bug in connection service current connection number only increase --- connection/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/connection/main.c b/connection/main.c index 0f6c0d38..717687ac 100644 --- a/connection/main.c +++ b/connection/main.c @@ -89,6 +89,7 @@ _del(struct connection_server * server, int fd) { skynet_send(server->ctx, 0, c->address, PTYPE_CLIENT | PTYPE_TAG_DONTCOPY, 0, NULL, 0); connection_del(server->pool, fd); } + --server->current_connection; c->address = 0; c->fd = 0; c->close = 0;