Only decrement client_count once for WS clients

This was incorrectly added in the fix for #3455.

Closes #3475. Thanks to Manuel Janocha
This commit is contained in:
Roger A. Light 2026-02-06 15:08:57 +00:00
parent 8d0394a977
commit 9b3dc05706

View file

@ -198,7 +198,6 @@ static int callback_mqtt(
HASH_DELETE(hh_sock, db.contexts_by_sock, mosq);
mosq->sock = INVALID_SOCKET;
mux__delete(mosq);
mosq->listener->client_count--;
}
mosq->wsi = NULL;
#ifdef WITH_TLS