mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
fixed uncaught exception
This commit is contained in:
parent
e238aa56cb
commit
36c344cedc
1 changed files with 4 additions and 1 deletions
|
@ -1161,7 +1161,10 @@ function createMeshCore(agent) {
|
|||
this.ws._term = c;
|
||||
c.pipe(this.ws, { dataTypeSkip: 1 });
|
||||
this.ws.pipe(c, { dataTypeSkip: 1, end: false });
|
||||
this.ws.prependListener('end', function () { this.httprequest._term.end(function () { console.log("Terminal was closed"); }); });
|
||||
this.ws.prependListener('end', function ()
|
||||
{
|
||||
if (this.httprequest._term) { this.httprequest._term.end(function () { console.log("Terminal was closed"); }); }
|
||||
});
|
||||
});
|
||||
}
|
||||
} catch (e)
|
||||
|
|
Loading…
Add table
Reference in a new issue