Skip to content

Commit b9cb02f

Browse files
authored
fix: change machine stream close function context (#194)
Signed-off-by: Sonia Sandler <[email protected]>
1 parent 599038d commit b9cb02f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/macadam-machine-stream.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ export class ProviderConnectionShellAccessImpl implements ProviderConnectionShel
106106

107107
stream
108108
.on('close', () => {
109-
console.error('close');
110109
this.onEndEmit.fire();
111110
this.closeStream();
112111
})
@@ -132,7 +131,7 @@ export class ProviderConnectionShellAccessImpl implements ProviderConnectionShel
132131
onEnd: this.onEnd,
133132
write: this.write.bind(this),
134133
resize: this.resize.bind(this),
135-
close: this.close,
134+
close: this.close.bind(this),
136135
};
137136
}
138137
}

0 commit comments

Comments
 (0)