killing non existing process does not throw error
This commit is contained in:
parent
f92d777ee1
commit
9a9041bd98
@ -28,7 +28,8 @@ class ProcessManager {
|
||||
|
||||
public static function kill(pid: PID) {
|
||||
if (!processList.exists(pid)){
|
||||
throw new Error("Process with PID " + pid + " does not exist");
|
||||
Log.warn("Trying to kill non-existing process: " + pid);
|
||||
return;
|
||||
}
|
||||
|
||||
var handle = processList.get(pid);
|
||||
|
Loading…
Reference in New Issue
Block a user