FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Merge pull request #256 from luke-waymark-sage/master · FugLord77/python-shell@fd08776 · GitHub

Repository navigation

Commit fd08776

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

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎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)

Back | FazBrowse Home | New Git URL