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:
parent
15704d8fbf
commit
7f8bb31e23
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user