1
0
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:
Christian Muehlhaeuser
2013-01-28 12:30:07 +01:00
parent c0e77ac633
commit 03fd8cc6fd

View File

@@ -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;
}
}