mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 07:36:48 +02:00
* Set a contact id when creating peerinfo for zeroconf in Servent.
This commit is contained in:
@@ -910,6 +910,7 @@ Servent::claimOffer( ControlConnection* cc, const QString &nodeid, const QString
|
|||||||
// this is terrible, actually there should be a way to let this be created by the zeroconf plugin
|
// this is terrible, actually there should be a way to let this be created by the zeroconf plugin
|
||||||
// because this way we rely on the ip being used as id in two totally different parts of the code
|
// because this way we rely on the ip being used as id in two totally different parts of the code
|
||||||
Tomahawk::peerinfo_ptr peerInfo = Tomahawk::PeerInfo::get( account->sipPlugin(), peer.toString(), Tomahawk::PeerInfo::AutoCreate );
|
Tomahawk::peerinfo_ptr peerInfo = Tomahawk::PeerInfo::get( account->sipPlugin(), peer.toString(), Tomahawk::PeerInfo::AutoCreate );
|
||||||
|
peerInfo->setContactId( peer.toString() );
|
||||||
peerInfoDebug( peerInfo );
|
peerInfoDebug( peerInfo );
|
||||||
conn->addPeerInfo( peerInfo );
|
conn->addPeerInfo( peerInfo );
|
||||||
return conn;
|
return conn;
|
||||||
|
Reference in New Issue
Block a user