mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 17:43:59 +02:00
Give resolver another second to quit and terminate
This commit is contained in:
@@ -69,10 +69,16 @@ ScriptResolver::~ScriptResolver()
|
|||||||
msg[ "_msgtype" ] = "quit";
|
msg[ "_msgtype" ] = "quit";
|
||||||
sendMessage( msg );
|
sendMessage( msg );
|
||||||
|
|
||||||
m_proc.waitForFinished( 1000 ); // might call handleMsg
|
m_proc.waitForFinished( 2000 ); // might call handleMsg
|
||||||
|
|
||||||
Tomahawk::Pipeline::instance()->removeResolver( this );
|
Tomahawk::Pipeline::instance()->removeResolver( this );
|
||||||
|
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
|
m_proc.kill();
|
||||||
|
#else
|
||||||
|
m_proc.terminate();
|
||||||
|
#endif
|
||||||
|
|
||||||
if ( !m_configWidget.isNull() )
|
if ( !m_configWidget.isNull() )
|
||||||
delete m_configWidget.data();
|
delete m_configWidget.data();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user