1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-01 11:50:37 +02:00

Check (qid,r) for existence before processing removal

This commit is contained in:
Anton Romanov
2015-05-28 18:21:53 -07:00
committed by Christian Muehlhaeuser
parent e418811edc
commit a77877b546

View File

@@ -628,7 +628,6 @@ Pipeline::checkQIDState( const Tomahawk::query_ptr& query )
}
else
{
d->qidsState.remove( query->id() );
query->onResolvingFinished();
if ( !d->queries_temporary.contains( query ) )
@@ -654,12 +653,15 @@ Pipeline::decQIDState( const Tomahawk::query_ptr& query, Tomahawk::Resolver* r )
{
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 );
}
}