Wormhole coredumb fix
This commit is contained in:
@@ -156,10 +156,9 @@ void WormholeClient::onConnected()
|
|||||||
timer = new QTimer(parent);
|
timer = new QTimer(parent);
|
||||||
QObject::connect(timer, &QTimer::timeout, [=]() {
|
QObject::connect(timer, &QTimer::timeout, [=]() {
|
||||||
if (!shuttingDown && m_webSocket->isValid()) {
|
if (!shuttingDown && m_webSocket->isValid()) {
|
||||||
auto payload = QJsonDocument(QJsonObject {
|
auto payload = QJsonDocument(QJsonObject { {"ping", "ping"} }).toJson();
|
||||||
{"ping", "ping"}
|
qint64 bytes = m_webSocket->sendTextMessage(payload);
|
||||||
}).toJson();
|
qDebug() << "Sent ping, " << bytes << " bytes";
|
||||||
m_webSocket->sendTextMessage(payload);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
timer->start(4 * 60 * 1000); // 4 minutes
|
timer->start(4 * 60 * 1000); // 4 minutes
|
||||||
|
|||||||
Reference in New Issue
Block a user