Skip to content

Commit

Permalink
Remove stream end and close event listening
Browse files Browse the repository at this point in the history
  • Loading branch information
mustard-mh authored Jul 14, 2023
1 parent 29b5db0 commit 811d34c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/local-ssh/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ class WebSocketSSHProxy {
setTimeout(() => process.exit(0), 50);
}
});
sshStream.on('end', () => {
setTimeout(() => process.exit(0), 50);
});
sshStream.on('close', () => {
setTimeout(() => process.exit(0), 50);
});
// sshStream.on('end', () => {
// setTimeout(() => process.exit(0), 50);
// });
// sshStream.on('close', () => {
// setTimeout(() => process.exit(0), 50);
// });

// This is expected to never throw as key is hardcoded
const keys = await importKeyBytes(getHostKey());
Expand Down

0 comments on commit 811d34c

Please sign in to comment.