From 0e1e7545a2ad62856c47055c0bf9d11ddce52956 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sun, 12 Jul 2020 13:01:44 -0600 Subject: [PATCH] Hang after exiting DoorParty! #282 --- core/door_party.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/door_party.js b/core/door_party.js index 184416f7..aee4438c 100644 --- a/core/door_party.js +++ b/core/door_party.js @@ -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();