1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-21 00:12:06 +02:00

Set nodeId on lazy offers

This commit is contained in:
Uwe L. Korn 2013-06-28 14:23:14 +02:00 committed by Michael Zanetti
parent 15704d8fbf
commit 7f8bb31e23

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