fixed manager trying to release locks it didnt have

This commit is contained in:
Aidan Hahn 2019-06-01 15:36:13 -07:00
parent 4aa0a648f9
commit 92fb02b0bf
No known key found for this signature in database
GPG key ID: 327711E983899316

View file

@ -67,9 +67,7 @@ class ProcessManager {
try { try {
ProcessController newProc = new ProcessController(command, this.LOCK_TIMEOUT); ProcessController newProc = new ProcessController(command, this.LOCK_TIMEOUT);
// we dont need to lock the map yet
this.processMap.put(newProc.getPid(), newProc); this.processMap.put(newProc.getPid(), newProc);
this.releaseLock(newProc.getPid());
return newProc.getPid(); return newProc.getPid();
} catch (IOException e) { } catch (IOException e) {