From 30e5e9c5c52c113d2da89f49697e5e852f4fd531 Mon Sep 17 00:00:00 2001 From: gg Date: Wed, 14 Jan 2026 05:32:46 -0500 Subject: [PATCH] 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 --- src/utils/WebsocketClient.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } -- 2.52.0