fix: 🐛 update isRunning to check exitCode (#3148)
* fix: 🐛 update isRunning to check exitCode * chore: 🤖 fix logic check for isRunning * refactor: 💡 add signalCode check for isRunning
This commit is contained in:
1 parent
46ededd676
commit
ea1e7a99de
1 file changed
+5
-1
@@ -49,7 +49,11 @@ class Session {
|
|||||||
* @return {boolean}
|
* @return {boolean}
|
||||||
*/
|
*/
|
||||||
get isRunning() {
|
get isRunning() {
|
||||||
return this.#process && !this.#process.killed;
|
return (
|
||||||
|
this.#process &&
|
||||||
|
this.#process.exitCode === null &&
|
||||||
|
this.#process.signalCode === null
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user