mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 23:57:34 +02:00
Check (qid,r) for existence before processing removal
This commit is contained in:
committed by
Christian Muehlhaeuser
parent
e418811edc
commit
a77877b546
@@ -628,7 +628,6 @@ Pipeline::checkQIDState( const Tomahawk::query_ptr& query )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
d->qidsState.remove( query->id() );
|
|
||||||
query->onResolvingFinished();
|
query->onResolvingFinished();
|
||||||
|
|
||||||
if ( !d->queries_temporary.contains( query ) )
|
if ( !d->queries_temporary.contains( query ) )
|
||||||
@@ -654,12 +653,15 @@ Pipeline::decQIDState( const Tomahawk::query_ptr& query, Tomahawk::Resolver* r )
|
|||||||
{
|
{
|
||||||
Q_D( Pipeline );
|
Q_D( Pipeline );
|
||||||
|
|
||||||
|
if ( d->qidsState.contains( query->id(), r ) )
|
||||||
{
|
{
|
||||||
QMutexLocker lock( &d->mut );
|
{
|
||||||
d->qidsState.remove( query->id(), r );//Removes all matching pairs
|
QMutexLocker lock( &d->mut );
|
||||||
}
|
d->qidsState.remove( query->id(), r );//Removes all matching pairs
|
||||||
|
}
|
||||||
|
|
||||||
checkQIDState( query );
|
checkQIDState( query );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user