1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-20 12:52:30 +02:00

Fixed Pipeline.

This commit is contained in:
Christian Muehlhaeuser
2015-04-09 23:57:00 +02:00
parent bb0e24ccc5
commit 2ea5e6b8e1

View File

@@ -337,18 +337,14 @@ Pipeline::reportResults( QID qid, const QList< result_ptr >& results )
return; return;
if ( !d->qids.contains( qid ) ) if ( !d->qids.contains( qid ) )
{ {
if ( !results.isEmpty() ) if ( results.length() > 0 && !results[0]->resolvedBy().isNull() )
{ {
ResultProvider* resolvedBy = results[0]->resolvedBy(); tDebug() << "Result arrived too late for:" << qid << "by" << results[0]->resolvedBy()->name();
if ( resolvedBy )
{
tDebug() << "Result arrived too late for:" << qid << "by" << resolvedBy->name();
} }
else else
{ {
tDebug() << "Result arrived too late for:" << qid; tDebug() << "Result arrived too late for:" << qid;
} }
}
return; return;
} }
const query_ptr& q = d->qids.value( qid ); const query_ptr& q = d->qids.value( qid );