1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-22 16:59:58 +01:00

Fix condition where duplicate connections could happen from twitter

This commit is contained in:
Jeff Mitchell 2011-05-02 16:27:34 -04:00
parent 81065243f4
commit 58692f424d

View File

@ -270,6 +270,7 @@ TwitterPlugin::connectTimerFired()
{
peerData["lastseen"] = QDateTime::currentMSecsSinceEpoch();
m_cachedPeers[screenName] = peerData;
continue;
}
if ( QDateTime::currentMSecsSinceEpoch() - peerData["lastseen"].toLongLong() > 1209600000 ) // 2 weeks