mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Fix condition where duplicate connections could happen from twitter
This commit is contained in:
@@ -270,6 +270,7 @@ TwitterPlugin::connectTimerFired()
|
|||||||
{
|
{
|
||||||
peerData["lastseen"] = QDateTime::currentMSecsSinceEpoch();
|
peerData["lastseen"] = QDateTime::currentMSecsSinceEpoch();
|
||||||
m_cachedPeers[screenName] = peerData;
|
m_cachedPeers[screenName] = peerData;
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( QDateTime::currentMSecsSinceEpoch() - peerData["lastseen"].toLongLong() > 1209600000 ) // 2 weeks
|
if ( QDateTime::currentMSecsSinceEpoch() - peerData["lastseen"].toLongLong() > 1209600000 ) // 2 weeks
|
||||||
|
Reference in New Issue
Block a user