Hang after exiting DoorParty! #282

This commit is contained in:
Bryan Ashby 2020-07-12 13:01:44 -06:00
parent 7ecd988f44
commit 0e1e7545a2
No known key found for this signature in database
GPG Key ID: B49EB437951D2542
1 changed files with 5 additions and 0 deletions

View File

@ -67,6 +67,7 @@ exports.getModule = class DoorPartyModule extends MenuModule {
if(doorTracking) {
trackDoorRunEnd(doorTracking);
doorTracking = null;
}
}
};
@ -103,6 +104,10 @@ exports.getModule = class DoorPartyModule extends MenuModule {
self.client.term.rawWrite(d);
});
stream.on('end', () => {
sshClient.end();
});
stream.on('close', () => {
restorePipe();
sshClient.end();