Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.13, 5.14
-
None
-
-
393fcf8a64748f0c59f47d254667518dba9e2fc3 (qt/qtwebsockets/dev) 34010e649734fe7a41d1a0280c606b15de5c2799 (qt/qtwebsockets/5.15)
Description
My problem is that when I use QWebSocket with QThread, there are a lot of errors when getting data on the socket.
Methods of opening and closing I use via
QMetaObject::invokeMethod(m_WebSocket, "open", Qt::QueuedConnection, Q_ARG(QUrl, m_url)); QMetaObject::invokeMethod(m_WebSocket, "close", Qt::QueuedConnection, Q_ARG(QWebSocketProtocol::CloseCode, QWebSocketProtocol::CloseCodeNormal), Q_ARG(QString, QString("Reconnect by add new stream")));
[23-04-2020 12:10:12] [Warning] <:0> QObject::startTimer: Timers cannot be started from another thread [23-04-2020 12:10:12] [Warning] <:0> QObject::killTimer: Timers cannot be stopped from another thread
But on Qt 5.12.7 it ok