From 9b3dc05706b410b391aa0a4bea53ca2b080a197d Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Fri, 6 Feb 2026 15:08:57 +0000 Subject: [PATCH] Only decrement client_count once for WS clients This was incorrectly added in the fix for #3455. Closes #3475. Thanks to Manuel Janocha --- src/websockets.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/websockets.c b/src/websockets.c index 530b045af..f3443517a 100644 --- a/src/websockets.c +++ b/src/websockets.c @@ -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