1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

Don't fail on timeout.

This commit is contained in:
Teo Mrnjavac
2013-02-04 22:59:25 +01:00
parent 90774b48f4
commit ec4fe9babe

View File

@@ -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 );