1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 09:19:41 +01: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 )
{
peerInfoDebug(peerInfo) << "we need to establish the connection now... thinking";
if ( !connectedToSession( peerInfo->sipInfo().first().nodeId() ) )
if ( !connectedToSession( peerInfo->id() ) )
{
connectToPeer( peerInfo );
}