]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
fix annoying WebSocket close warning:
authorgg <chown_tee@proton.me>
Wed, 14 Jan 2026 10:32:46 +0000 (05:32 -0500)
committergg <chown_tee@proton.me>
Wed, 14 Jan 2026 10:32:46 +0000 (05:32 -0500)
    WindowManager: cleanup thread done 0x7cca7efdbec0
    ~Application
    ~WebsocketNotifier 0x7cca7efdbec0
    QObject::startTimer: Timers can only be used with threads started with QThread

src/utils/WebsocketClient.cpp

index 55498186c9ab1d6212d40d56dd2242784dc93ff0..45b44799254bf33ccfbd3dd7c95d98ec7473e8f6 100644 (file)
@@ -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();
 }