From 4f14ce96cb7a1dd6f4e099bf294c20167cf8733a Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Mon, 12 Sep 2011 12:28:25 -0400 Subject: [PATCH] Fix hanging on shutdown introduced by refactor commit --- src/libtomahawk/resolvers/scriptresolver.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libtomahawk/resolvers/scriptresolver.cpp b/src/libtomahawk/resolvers/scriptresolver.cpp index 0fbcbb53e..509e19eb5 100644 --- a/src/libtomahawk/resolvers/scriptresolver.cpp +++ b/src/libtomahawk/resolvers/scriptresolver.cpp @@ -65,7 +65,9 @@ ScriptResolver::ScriptResolver( const QString& exe ) ScriptResolver::~ScriptResolver() { - stop(); + disconnect( &m_proc, SIGNAL( finished( int, QProcess::ExitStatus ) ), this, SLOT( cmdExited( int, QProcess::ExitStatus ) ) ); + + m_proc.kill(); m_proc.waitForFinished(); Tomahawk::Pipeline::instance()->removeResolver( this );