1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 17:43:59 +02:00

We are handling a set, so we need no duplicate detection.

This commit is contained in:
Uwe L. Korn
2013-05-29 00:10:05 +02:00
committed by Michael Zanetti
parent 1637b325d7
commit 72b326a3be

View File

@@ -290,11 +290,7 @@ void
ControlConnection::addPeerInfo( const peerinfo_ptr& peerInfo )
{
peerInfo->setControlConnection( this );
// Check if we already have added this peerInfo
if ( !m_peerInfos.contains( peerInfo ) )
{
m_peerInfos.insert( peerInfo );
}
m_peerInfos.insert( peerInfo );
}