mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 15:47:38 +02:00
Don't fail on timeout.
This commit is contained in:
@@ -63,6 +63,9 @@ ScriptCommandQueue::nextCommand()
|
|||||||
void
|
void
|
||||||
ScriptCommandQueue::onCommandDone()
|
ScriptCommandQueue::onCommandDone()
|
||||||
{
|
{
|
||||||
|
if ( m_queue.isEmpty() || !m_timer->isActive() ) //the timeout already happened or some other weird thing
|
||||||
|
return; //nothing to do here
|
||||||
|
|
||||||
m_timer->stop();
|
m_timer->stop();
|
||||||
|
|
||||||
QMutexLocker locker( &m_mutex );
|
QMutexLocker locker( &m_mutex );
|
||||||
|
Reference in New Issue
Block a user