1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 00:09:47 +01: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 );