mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
Better way to get the id of a peer
This commit is contained in:
@@ -358,7 +358,7 @@ Servent::registerPeer( const Tomahawk::peerinfo_ptr& peerInfo )
|
||||
if ( peerInfo->type() == Tomahawk::PeerInfo::Local )
|
||||
{
|
||||
peerInfoDebug(peerInfo) << "we need to establish the connection now... thinking";
|
||||
if ( !connectedToSession( peerInfo->sipInfo().first().nodeId() ) )
|
||||
if ( !connectedToSession( peerInfo->id() ) )
|
||||
{
|
||||
connectToPeer( peerInfo );
|
||||
}
|
||||
|
Reference in New Issue
Block a user