Skip to content
Snippets Groups Projects
Verified Commit 7cd5bca9 authored by Burak Hançerli's avatar Burak Hançerli :headphones:
Browse files

chore: add a bit of log to help to debug connection issues

parent 54bf60a8
No related branches found
No related tags found
1 merge request!72Disconnect immediately when the app is put to sleep (or sent to background)
Pipeline #78831 passed
...@@ -67,6 +67,12 @@ void DesignStudio::initPingPong() ...@@ -67,6 +67,12 @@ void DesignStudio::initPingPong()
&QWebSocket::pong, &QWebSocket::pong,
this, this,
[this](quint64 elapsedTime, const QByteArray &) { [this](quint64 elapsedTime, const QByteArray &) {
if (elapsedTime > 1000)
qWarning() << "Design Studio pong is too slow:" << elapsedTime
<< "ms. Newtork issue?";
else if (elapsedTime > 500)
qWarning() << "Design Studio pong is slow:" << elapsedTime << "ms";
m_pongTimer.stop(); m_pongTimer.stop();
m_pingTimer.start(); m_pingTimer.start();
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment