Commit aa898a53 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen

fix waitForFinished logic

parent bb429a0e
...@@ -1332,8 +1332,7 @@ void GdbEngine::exitDebugger() ...@@ -1332,8 +1332,7 @@ void GdbEngine::exitDebugger()
postCommand(_("kill")); postCommand(_("kill"));
postCommand(_("-gdb-exit"), CB(handleExit)); postCommand(_("-gdb-exit"), CB(handleExit));
// 20s can easily happen when loading webkit debug information // 20s can easily happen when loading webkit debug information
m_gdbProc.waitForFinished(20000); if (!m_gdbProc.waitForFinished(20000)) {
if (m_gdbProc.state() != QProcess::Running) {
debugMessage(_("FORCING TERMINATION: %1") debugMessage(_("FORCING TERMINATION: %1")
.arg(m_gdbProc.state())); .arg(m_gdbProc.state()));
m_gdbProc.terminate(); m_gdbProc.terminate();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment