From: gg Date: Wed, 14 Jan 2026 10:32:46 +0000 (-0500) Subject: fix annoying WebSocket close warning: X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=30e5e9c5c52c113d2da89f49697e5e852f4fd531;p=gamesguru%2Ffeather.git fix annoying WebSocket close warning: WindowManager: cleanup thread done 0x7cca7efdbec0 ~Application ~WebsocketNotifier 0x7cca7efdbec0 QObject::startTimer: Timers can only be used with threads started with QThread --- diff --git a/src/utils/WebsocketClient.cpp b/src/utils/WebsocketClient.cpp index 55498186..45b44799 100644 --- a/src/utils/WebsocketClient.cpp +++ b/src/utils/WebsocketClient.cpp @@ -83,7 +83,8 @@ void WebsocketClient::restart() { void WebsocketClient::stop() { qDebug() << Q_FUNC_INFO; m_stopped = true; - webSocket->close(); + webSocket->disconnect(); + webSocket->abort(); m_connectionTimeout.stop(); m_pingTimer.stop(); }