Merge pull request #13 from hlouis/master

Fix bug in connection service
This commit is contained in:
云风
2013-04-17 00:41:39 -07:00

View File

@@ -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;