mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-10 08:04:25 +02:00
* Print out some more debug in case we run into problems.
This commit is contained in:
@@ -182,6 +182,8 @@ Pipeline::reportResults( QID qid, const QList< result_ptr >& results )
|
|||||||
if ( m_qidsTimeout.contains( q->id() ) )
|
if ( m_qidsTimeout.contains( q->id() ) )
|
||||||
m_qidsTimeout.remove( q->id() );
|
m_qidsTimeout.remove( q->id() );
|
||||||
|
|
||||||
|
qDebug() << "Queries running:" << m_qidsState.count();
|
||||||
|
|
||||||
shuntNext();
|
shuntNext();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -192,6 +194,10 @@ Pipeline::reportResults( QID qid, const QList< result_ptr >& results )
|
|||||||
if ( !q->solved() )
|
if ( !q->solved() )
|
||||||
q->onResolvingFinished();
|
q->onResolvingFinished();
|
||||||
|
|
||||||
|
if ( m_qidsTimeout.contains( q->id() ) )
|
||||||
|
m_qidsTimeout.remove( q->id() );
|
||||||
|
|
||||||
|
qDebug() << "Queries running:" << m_qidsState.count();
|
||||||
shuntNext();
|
shuntNext();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -305,6 +311,7 @@ Pipeline::shunt( const query_ptr& q )
|
|||||||
// reached end of pipeline
|
// reached end of pipeline
|
||||||
qDebug() << "Reached end of pipeline for:" << q->toString();
|
qDebug() << "Reached end of pipeline for:" << q->toString();
|
||||||
setQIDState( q, 0 );
|
setQIDState( q, 0 );
|
||||||
|
qDebug() << "Queries running:" << m_qidsState.count();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -327,7 +334,7 @@ Pipeline::setQIDState( const Tomahawk::query_ptr& query, int state )
|
|||||||
{
|
{
|
||||||
QMutexLocker lock( &m_mut );
|
QMutexLocker lock( &m_mut );
|
||||||
|
|
||||||
if ( state )
|
if ( state > 0 )
|
||||||
{
|
{
|
||||||
qDebug() << Q_FUNC_INFO << "inserting to qidsstate:" << query->id() << state;
|
qDebug() << Q_FUNC_INFO << "inserting to qidsstate:" << query->id() << state;
|
||||||
m_qidsState.insert( query->id(), state );
|
m_qidsState.insert( query->id(), state );
|
||||||
|
Reference in New Issue
Block a user