Added dispatcher.close() call to 'setclip'

This commit is contained in:
Bryan Roe 2022-08-25 10:22:39 -07:00
parent e59f4b4482
commit b1879aaf6c
1 changed files with 6 additions and 2 deletions

View File

@ -1370,7 +1370,9 @@ function handleServerCommand(data) {
this._dispatcher.on('connection', function (c) { this._dispatcher.on('connection', function (c) {
this._c = c; this._c = c;
this._c.root = this.parent; 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._dispatcher = null;
this.root = null; this.root = null;
mesh.SendCommand({ action: 'msg', type: 'setclip', sessionid: data.sessionid, success: true }); 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._dispatcher.on('connection', function (c) {
this._c = c; this._c = c;
this._c.root = this.parent; 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._dispatcher = null;
this.root = null; this.root = null;
}); });