mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
Fix TWK-1617
This commit is contained in:
@@ -230,7 +230,7 @@ HatchetSipPlugin::webSocketDisconnected()
|
|||||||
// Work on the assumption that we were disconnected because Dreamcatcher shut down
|
// Work on the assumption that we were disconnected because Dreamcatcher shut down
|
||||||
// Reconnect after a time; use reasonable backoff + random
|
// Reconnect after a time; use reasonable backoff + random
|
||||||
int interval = m_reconnectTimer.interval() <= 25000 ? m_reconnectTimer.interval() + 5000 : 30000;
|
int interval = m_reconnectTimer.interval() <= 25000 ? m_reconnectTimer.interval() + 5000 : 30000;
|
||||||
interval += QCA::Random::randomInt() % 30;
|
interval += qrand() % 30;
|
||||||
m_reconnectTimer.setInterval( interval );
|
m_reconnectTimer.setInterval( interval );
|
||||||
m_reconnectTimer.start();
|
m_reconnectTimer.start();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user