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:
@@ -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 );
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user