Skip to content

Commit d0497f8

Browse files
authored
Update index.ts
1 parent 2145853 commit d0497f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@ export class PythonShell extends EventEmitter{
155155
errorData += ''+data;
156156
self.receiveStderr(data);
157157
});
158+
}
158159

160+
if (this.stderr) {
159161
this.stderr.on('end', function(){
160162
self.stderrHasEnded = true;
161163
terminateIfNeeded();

0 commit comments

Comments
 (0)