1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-18 11:51:44 +02:00

Set nodeId on lazy offers

This commit is contained in:
Uwe L. Korn
2013-06-28 14:23:14 +02:00
parent 8cc7321eb3
commit ca9cf6b791

View File

@@ -1090,6 +1090,13 @@ Servent::claimOffer( ControlConnection* cc, const QString &nodeid, const QString
conn->addPeerInfo( d_func()->lazyoffers.value( key ).first );
conn->setId( d_func()->lazyoffers.value( key ).second );
if ( !nodeid.isEmpty() )
{
// Used by the connection for the ACL check
// If there isn't a nodeid it's not the first connection and will already have been stopped
conn->setNodeId( nodeid );
}
// Register as non-lazy offer
d_func()->lazyoffers.remove( key );
registerOffer( key, conn );