X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Fsilcd%2Fcommand.c;h=698b22657ac1c719dbfc455c7ae8e6a45ffb6a7f;hb=ce742c4140e578ab25c84eef9c189892c3681214;hp=2bd8198ebcfd0e2583b84098c1063bfe777c8cdd;hpb=b560ba10ed343202962d5575a988e1faec91e0db;p=silc.git diff --git a/apps/silcd/command.c b/apps/silcd/command.c index 2bd8198e..698b2265 100644 --- a/apps/silcd/command.c +++ b/apps/silcd/command.c @@ -4078,6 +4078,13 @@ SILC_TASK_CALLBACK(silc_server_command_detach_cb) client->router = NULL; client->connection = NULL; silc_server_close_connection(server, sock); + + /* + * Decrement the user count; we'll increment it if the user resumes on our + * server. + */ + SILC_VERIFY(&server->stat.my_clients > 0); + server->stat.my_clients--; } silc_free(client_id);