mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Only wait for shutdown of script resolver if it's running
This commit is contained in:
@@ -69,7 +69,7 @@ ScriptResolver::~ScriptResolver()
|
|||||||
msg[ "_msgtype" ] = "quit";
|
msg[ "_msgtype" ] = "quit";
|
||||||
sendMessage( msg );
|
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 );
|
Tomahawk::Pipeline::instance()->removeResolver( this );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user