mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-01-31 05:38:04 +01:00
Fix premature qidstate clearing, protect decqidstate
This commit is contained in:
parent
e83b476db4
commit
d276bff70e
@ -582,8 +582,6 @@ Pipeline::shunt( const query_ptr& q )
|
||||
//since we seem to at least tried to kick off all of the resolvers,
|
||||
//remove the '.keep' entry
|
||||
decQIDState( q, nullptr );
|
||||
//daaaaad, are we there yet?
|
||||
checkQIDState( q );
|
||||
return;
|
||||
}
|
||||
|
||||
@ -656,10 +654,10 @@ Pipeline::decQIDState( const Tomahawk::query_ptr& query, Tomahawk::Resolver* r )
|
||||
{
|
||||
Q_D( Pipeline );
|
||||
|
||||
if ( r )
|
||||
{
|
||||
QMutexLocker lock( &d->mut );
|
||||
d->qidsState.remove( query->id(), r );//Removes all matching pairs
|
||||
else
|
||||
d->qidsState.remove( query->id() );//Will clear
|
||||
}
|
||||
|
||||
checkQIDState( query );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user