utils fix killing powershell (windows)

This commit is contained in:
Sebastian Hildebrandt
2023-01-10 08:09:51 +01:00
parent 8a6e5f9719
commit cc53d2d0d5
4 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -414,7 +414,7 @@ function powerShellRelease() {
_psPersistent = false;
}
} catch (e) {
_psChild.kill();
if (_psChild) { _psChild.kill(); }
}
_psChild = null;
}