1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-04 21:27:58 +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
parent c8384ec757
commit 612fd27564

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