1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-05 13:47:26 +02:00

Notify of resolving finished when timeout is reached for resolvers that don't report back

This commit is contained in:
Leo Franchi
2011-06-17 11:43:39 -04:00
parent 994ed90ed6
commit 2088e78020
2 changed files with 4 additions and 2 deletions

View File

@@ -174,7 +174,7 @@ Pipeline::reportResults( QID qid, const QList< result_ptr >& results )
const query_ptr& q = m_qids.value( qid ); const query_ptr& q = m_qids.value( qid );
if ( !results.isEmpty() ) if ( !results.isEmpty() )
{ {
//qDebug() << Q_FUNC_INFO << qid; // qDebug() << Q_FUNC_INFO << qid;
q->addResults( results ); q->addResults( results );
foreach( const result_ptr& r, q->results() ) foreach( const result_ptr& r, q->results() )
@@ -295,6 +295,8 @@ Pipeline::shunt( const query_ptr& q )
{ {
qDebug() << "Reached end of pipeline for:" << q->toString(); qDebug() << "Reached end of pipeline for:" << q->toString();
setQIDState( q, 0 ); setQIDState( q, 0 );
q->onResolvingFinished();
} }
shuntNext(); shuntNext();

View File

@@ -1,5 +1,5 @@
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> === /* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
* *
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org> * Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
* *
* Tomahawk is free software: you can redistribute it and/or modify * Tomahawk is free software: you can redistribute it and/or modify