Always release a latch even in case of exceptions (PY-25920)

This commit is contained in:
Elizaveta Shashkova
2017-09-06 15:18:33 +03:00
parent 237e304067
commit 85ace0794d
@@ -333,11 +333,13 @@ public class RemoteDebugger implements ProcessDebugger {
try {
command.execute();
myLatch.countDown();
}
catch (PyDebuggerException e) {
LOG.error(e);
}
finally {
myLatch.countDown();
}
});
if (command.isResponseExpected()) {
// Note: do not wait for result from UI thread