mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 15:21:30 +02:00
websocket: fix timer interval
This commit is contained in:
@@ -97,6 +97,7 @@ void WebsocketClient::nextWebsocketUrl() {
|
||||
void WebsocketClient::onConnectionTimeout() {
|
||||
qWarning() << "Websocket connection timeout";
|
||||
m_timeout = std::min(m_timeout + 5, 60);
|
||||
m_connectionTimeout.setInterval(m_timeout*1000);
|
||||
this->onDisconnected();
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ private:
|
||||
QUrl m_url;
|
||||
QTimer m_pingTimer;
|
||||
QTimer m_connectionTimeout;
|
||||
int m_timeout = 10;
|
||||
int m_timeout = 20;
|
||||
int m_websocketUrlIndex = 0;
|
||||
bool m_stopped = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user