1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 01:24:11 +02:00

Better way to get the id of a peer

This commit is contained in:
Uwe L. Korn
2013-04-05 20:13:12 +02:00
committed by Michael Zanetti
parent 8b7dba77aa
commit b9e42a03e9

View File

@@ -358,7 +358,7 @@ Servent::registerPeer( const Tomahawk::peerinfo_ptr& peerInfo )
if ( peerInfo->type() == Tomahawk::PeerInfo::Local ) if ( peerInfo->type() == Tomahawk::PeerInfo::Local )
{ {
peerInfoDebug(peerInfo) << "we need to establish the connection now... thinking"; peerInfoDebug(peerInfo) << "we need to establish the connection now... thinking";
if ( !connectedToSession( peerInfo->sipInfo().first().nodeId() ) ) if ( !connectedToSession( peerInfo->id() ) )
{ {
connectToPeer( peerInfo ); connectToPeer( peerInfo );
} }