Fix timer connect
This commit is contained in:
parent
ffa85c30ef
commit
25cf8f7770
|
@ -164,7 +164,7 @@ void PushoverFrontend::connectToService()
|
|||
connect(m_socket.data(), &QWebSocket::disconnected, [this]() {
|
||||
snoreDebug(SNORE_WARNING) << "disconnected";
|
||||
//TODO: use new style connect once we depend on qt 5.4
|
||||
QTimer::singleShot(500, this, SLOT(PushoverFrontend::connectToService()));
|
||||
QTimer::singleShot(500, this, SLOT(connectToService()));
|
||||
});
|
||||
connect(m_socket.data(), static_cast<void (QWebSocket::*)(QAbstractSocket::SocketError)>(&QWebSocket::error), [&](QAbstractSocket::SocketError error) {
|
||||
snoreDebug(SNORE_WARNING) << error << m_socket->errorString();
|
||||
|
|
Loading…
Reference in New Issue