killing non existing process does not throw error

This commit is contained in:
Djeeberjr 2023-06-07 20:07:37 +02:00
parent f92d777ee1
commit 9a9041bd98

View File

@ -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);