From ec4fe9babe3cd21408a5455383c4dd7339965239 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Mon, 4 Feb 2013 22:59:25 +0100 Subject: [PATCH] Don't fail on timeout. --- src/libtomahawk/resolvers/ScriptCommandQueue.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libtomahawk/resolvers/ScriptCommandQueue.cpp b/src/libtomahawk/resolvers/ScriptCommandQueue.cpp index 7100c8dd5..d503b2755 100644 --- a/src/libtomahawk/resolvers/ScriptCommandQueue.cpp +++ b/src/libtomahawk/resolvers/ScriptCommandQueue.cpp @@ -63,6 +63,9 @@ ScriptCommandQueue::nextCommand() void 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(); QMutexLocker locker( &m_mutex );