From cc53d2d0d5d3e0ac8b008d46c250b99b98bb9cf3 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Tue, 10 Jan 2023 08:09:51 +0100 Subject: [PATCH] utils fix killing powershell (windows) --- CHANGELOG.md | 1 + docs/history.html | 5 +++++ docs/index.html | 2 +- lib/util.js | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b6324ad..c829bd4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -82,6 +82,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | ------- | ---------- | --------------------------------------------------------------------------------------------------- | +| 5.17.2 | 2023-01-10 | `utils` fix killing powershell (windows) | | 5.17.1 | 2023-01-06 | `graphics()` positionX, positionY Ventura fix (max OS) | | 5.17.0 | 2023-01-06 | `graphics()` added positionX, positionY (max OS) | | 5.16.9 | 2022-12-27 | updated docs | diff --git a/docs/history.html b/docs/history.html index 6743b9e..448b41e 100644 --- a/docs/history.html +++ b/docs/history.html @@ -57,6 +57,11 @@ + + 5.17.1 + 2023-01-06 + utils fix killing powershell (windows) + 5.17.1 2023-01-06 diff --git a/docs/index.html b/docs/index.html index 4e361d3..2277a95 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.17.1
+
New Version: 5.17.2
diff --git a/lib/util.js b/lib/util.js index db9633f..c4daa8a 100644 --- a/lib/util.js +++ b/lib/util.js @@ -414,7 +414,7 @@ function powerShellRelease() { _psPersistent = false; } } catch (e) { - _psChild.kill(); + if (_psChild) { _psChild.kill(); } } _psChild = null; }