Skip to content

Commit fd08776

Browse files
authored
Merge pull request #256 from luke-waymark-sage/master
Use kill signal's returned value
2 parents 9060f7f + 7de1258 commit fd08776

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,7 @@ export class PythonShell extends EventEmitter {
407407
* @returns {PythonShell} The same instance for chaining calls
408408
*/
409409
kill(signal?: NodeJS.Signals) {
410-
this.childProcess.kill(signal);
411-
this.terminated = true;
410+
this.terminated = this.childProcess.kill(signal);
412411
return this;
413412
};
414413

0 commit comments

Comments
 (0)