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:
parent
69ed522954
commit
224b46f5b0
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user