1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 07:49:42 +01:00

Only wait for shutdown of script resolver if it's running

This commit is contained in:
Leo Franchi 2012-06-08 09:24:19 +02:00
parent 69ed522954
commit 224b46f5b0

View File

@ -69,7 +69,7 @@ ScriptResolver::~ScriptResolver()
msg[ "_msgtype" ] = "quit";
sendMessage( msg );
bool finished = m_proc.waitForFinished( 2500 ); // might call handleMsg
bool finished = m_proc.state() != QProcess::Running || m_proc.waitForFinished( 2500 ); // might call handleMsg
Tomahawk::Pipeline::instance()->removeResolver( this );