From 7debd4ce6e4dfadb244f78e4da12a87988c396db Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Fri, 31 May 2024 11:34:29 +0200 Subject: [PATCH] powerShellStart() fixed kill issue --- CHANGELOG.md | 1 + docs/history.html | 5 +++++ docs/index.html | 4 ++-- lib/util.js | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3cf0854b..5c2c9433 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -83,6 +83,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | ------- | ---------- | --------------------------------------------------------------------------------------------------- | +| 5.22.9 | 2024-05-31 | `powerShellStart()` fixed kill issue | | 5.22.9 | 2024-05-13 | `memLayout()` fixed typo manufacturer | | 5.22.8 | 2024-05-05 | `utils()` replaces deprecated util._extend() | | 5.22.7 | 2024-04-02 | `battery()` fixed designed capacity issue (windows) | diff --git a/docs/history.html b/docs/history.html index a57917d7..7f290239 100644 --- a/docs/history.html +++ b/docs/history.html @@ -57,6 +57,11 @@

Full version history

+ + 5.22.10 + 2024-05-31 + powerShellStart() fixed kill issue + 5.22.9 2024-05-13 diff --git a/docs/index.html b/docs/index.html index 8227a773..f7097fa9 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.22.9
+
New Version: 5.22.10
@@ -212,7 +212,7 @@
Downloads last month
-
696
+
702
Dependents
diff --git a/lib/util.js b/lib/util.js index a7f11fe8..f5c1a5df 100644 --- a/lib/util.js +++ b/lib/util.js @@ -416,7 +416,7 @@ function powerShellStart() { powerShellProceedResults(_psResult + _psError); }); _psChild.on('close', function () { - _psChild.kill(); + if (_psChild) { _psChild.kill(); } }); } }