If one thread finished its work, debugger loses access to other suspended threads (PY-16525)

After killing thread check if there are other suspended threads and notify UI of it.
This commit is contained in:
Elizaveta Shashkova
2015-07-29 17:06:17 +03:00
parent 735b35709c
commit b68b0201bb
@@ -591,6 +591,13 @@ public class RemoteDebugger implements ProcessDebugger {
thread.updateState(PyThreadInfo.State.KILLED, null);
myThreads.remove(id);
}
for (PyThreadInfo threadInfo: myThreads.values()) {
// notify UI of suspended threads left in debugger if one thread finished its work
if ((threadInfo != null) && (threadInfo.getState() == PyThreadInfo.State.SUSPENDED)) {
myDebugProcess.threadResumed(threadInfo);
myDebugProcess.threadSuspended(threadInfo);
}
}
break;
}
case AbstractCommand.SHOW_CONSOLE: {