This commit is contained in:
Ylian Saint-Hilaire 2021-06-02 12:42:38 -07:00
parent 6e7f337509
commit 6d806087f8
2 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ module.exports.CreateMstscRelay = function (parent, db, ws, req, args, domain) {
//console.log('WinRDP - in', inTraffc, 'out', outTraffc); //console.log('WinRDP - in', inTraffc, 'out', outTraffc);
if (obj.wsClient) { obj.wsClient.close(); delete obj.wsClient; } if (obj.wsClient) { obj.wsClient.close(); delete obj.wsClient; }
if (obj.tcpServer) { obj.tcpServer.close(); obj.tcpServer.destroy(); delete obj.tcpServer; } if (obj.tcpServer) { obj.tcpServer.close(); delete obj.tcpServer; }
if (rdpClient) { rdpClient.close(); rdpClient = null; } if (rdpClient) { rdpClient.close(); rdpClient = null; }
if ((arg == 1) || (arg == null)) { try { ws.close(); } catch (e) { console.log(e); } } // Soft close, close the websocket if ((arg == 1) || (arg == null)) { try { ws.close(); } catch (e) { console.log(e); } } // Soft close, close the websocket
if (arg == 2) { try { ws._socket._parent.end(); } catch (e) { console.log(e); } } // Hard close, close the TCP socket if (arg == 2) { try { ws._socket._parent.end(); } catch (e) { console.log(e); } } // Hard close, close the TCP socket

View File

@ -6614,11 +6614,11 @@
"en": "Assistant", "en": "Assistant",
"es": "Asistente", "es": "Asistente",
"fr": "Assistant", "fr": "Assistant",
"hi": "सहायक", "hi": "Assistant",
"ko": "アシスタント", "ko": "Assistant",
"nl": "Assistant", "nl": "Assistant",
"ru": "Ассистент", "ru": "Ассистент",
"zh-chs": "助手", "zh-chs": "Assistant",
"xloc": [ "xloc": [
"agentinvite.handlebars->container->column_l->5->1->tandrotab", "agentinvite.handlebars->container->column_l->5->1->tandrotab",
"agentinvite.handlebars->container->column_l->5->assistab->1" "agentinvite.handlebars->container->column_l->5->assistab->1"