1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-10 16:14:40 +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
parent d171ab4f69
commit 1ad80185a5

View File

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