Fix crash if client disconnects/is logged out while door is running
This commit is contained in:
parent
04c8167a15
commit
64de10cbf7
|
@ -170,6 +170,12 @@ exports.getModule = class AbracadabraModule extends MenuModule {
|
|||
this.doorInstance.run(exeInfo, () => {
|
||||
trackDoorRunEnd(doorTracking);
|
||||
|
||||
// client may have disconnected while process was active -
|
||||
// we're done here if so.
|
||||
if(!this.client.term.output) {
|
||||
return;
|
||||
}
|
||||
|
||||
//
|
||||
// Try to clean up various settings such as scroll regions that may
|
||||
// have been set within the door
|
||||
|
|
Loading…
Reference in New Issue