mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
* Some more Servent cleanup.
This commit is contained in:
@@ -360,6 +360,7 @@ Servent::registerPeer( const Tomahawk::peerinfo_ptr& peerInfo )
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
Servent::onSipInfoChanged()
|
||||
{
|
||||
@@ -704,8 +705,7 @@ Servent::connectToPeer( const peerinfo_ptr& peerInfo )
|
||||
// try to find a ControlConnection with the same SipInfo, then we dont need to try to connect again
|
||||
foreach ( ControlConnection* c, m_controlconnections )
|
||||
{
|
||||
if ( !c )
|
||||
continue;
|
||||
Q_ASSERT( c );
|
||||
|
||||
if ( c->id() == sipInfo.nodeId() )
|
||||
{
|
||||
@@ -719,6 +719,7 @@ Servent::connectToPeer( const peerinfo_ptr& peerInfo )
|
||||
{
|
||||
isDupe = true;
|
||||
peerInfoDebug( currentPeerInfo ) << "Not adding, because it's a dupe: peerInfoCount remains the same" << conn->peerInfos().count();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user