mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 20:00:13 +02:00
* Always wait for DatabaseResolvers to finish before shunting queries.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
|
||||
*
|
||||
*
|
||||
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
||||
*
|
||||
* Tomahawk is free software: you can redistribute it and/or modify
|
||||
@@ -36,7 +36,7 @@ public:
|
||||
virtual QString name() const;
|
||||
virtual unsigned int weight() const { return m_weight; }
|
||||
virtual unsigned int preference() const { return 100; }
|
||||
virtual unsigned int timeout() const { return 2500; }
|
||||
virtual unsigned int timeout() const { return 0; }
|
||||
|
||||
public slots:
|
||||
virtual void resolve( const Tomahawk::query_ptr& query );
|
||||
|
@@ -285,7 +285,9 @@ Pipeline::shunt( const query_ptr& q )
|
||||
emit resolving( q );
|
||||
|
||||
m_qidsTimeout.insert( q->id(), true );
|
||||
new FuncTimeout( r->timeout(), boost::bind( &Pipeline::timeoutShunt, this, q ), this );
|
||||
|
||||
if ( r->timeout() > 0 )
|
||||
new FuncTimeout( r->timeout(), boost::bind( &Pipeline::timeoutShunt, this, q ), this );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user