From b1879aaf6cb4bb253efcc75840757c1eba505306 Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Thu, 25 Aug 2022 10:22:39 -0700 Subject: [PATCH] Added dispatcher.close() call to 'setclip' --- agents/meshcore.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/agents/meshcore.js b/agents/meshcore.js index e2bbf690..d342653e 100644 --- a/agents/meshcore.js +++ b/agents/meshcore.js @@ -1370,7 +1370,9 @@ function handleServerCommand(data) { this._dispatcher.on('connection', function (c) { this._c = c; this._c.root = this.parent; - this._c.on('end', function () { + this._c.on('end', function () + { + this.root._dispatcher.close(); this.root._dispatcher = null; this.root = null; mesh.SendCommand({ action: 'msg', type: 'setclip', sessionid: data.sessionid, success: true }); @@ -4344,7 +4346,9 @@ function processConsoleCommand(cmd, args, rights, sessionid) { this._dispatcher.on('connection', function (c) { this._c = c; this._c.root = this.parent; - this._c.on('end', function () { + this._c.on('end', function () + { + this.root._dispatcher.close(); this.root._dispatcher = null; this.root = null; });