1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-13 20:39:57 +01:00

Give resolver another second to quit and terminate

This commit is contained in:
Leo Franchi 2012-04-19 21:50:39 -04:00
parent 0bc8316319
commit 1360d28b25

View File

@ -69,10 +69,16 @@ ScriptResolver::~ScriptResolver()
msg[ "_msgtype" ] = "quit";
sendMessage( msg );
m_proc.waitForFinished( 1000 ); // might call handleMsg
m_proc.waitForFinished( 2000 ); // might call handleMsg
Tomahawk::Pipeline::instance()->removeResolver( this );
#ifdef Q_OS_WIN
m_proc.kill();
#else
m_proc.terminate();
#endif
if ( !m_configWidget.isNull() )
delete m_configWidget.data();
}