From 700197b2215a4079a87cab66ba0345d68fdcda8b Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sat, 7 Nov 2020 21:52:57 -0700 Subject: [PATCH] Cleanup --- core/door.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/door.js b/core/door.js index e5131684..59d18dff 100644 --- a/core/door.js +++ b/core/door.js @@ -152,9 +152,10 @@ module.exports = class Door { this.doorPty.kill(); } - if(this.client.term.output) { - this.client.term.output.unpipe(piped); - this.client.term.output.resume(); + const output = this.client.term.output; + if(output) { + output.unpipe(piped); + output.resume(); } this.restored = true; }