mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 07:49:42 +01:00
We are handling a set, so we need no duplicate detection.
This commit is contained in:
parent
d171ab4f69
commit
1ad80185a5
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user