Skip to content

Commit aa1de13

Browse files
flotwigkevzoid
authored andcommitted
properly call callback on close
1 parent 9745f92 commit aa1de13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/stdio-wrapper.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@ class StdioWrapper extends EventEmitter {
7878
this._pendingMessage = buffer.toString(undefined, start);
7979
}
8080

81-
close() {
81+
close(callback) {
8282
this._pipeWrite = null;
8383
removeEventListeners(this._eventListeners);
84+
callback();
8485
}
8586
}
8687

0 commit comments

Comments
 (0)