Skip to content

Commit 3d32d68

Browse files
committed
Only decrement client_count once for WS clients
This was incorrectly added in the fix for eclipse-mosquitto#3455. Closes eclipse-mosquitto#3475. Thanks to Manuel Janocha
1 parent 2bb4e0b commit 3d32d68

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/websockets.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ static int callback_mqtt(
196196
HASH_DELETE(hh_sock, db.contexts_by_sock, mosq);
197197
mosq->sock = INVALID_SOCKET;
198198
mux__delete(mosq);
199-
mosq->listener->client_count--;
200199
}
201200
mosq->wsi = NULL;
202201
#ifdef WITH_TLS

0 commit comments

Comments
 (0)