mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-25 04:19:11 -05:00
Added workaround for bug where a connection reset causes an uncaught exception
This commit is contained in:
parent
6b4efaabbe
commit
3acad0b3d6
@ -1794,6 +1794,8 @@ function onTunnelClosed() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
// Sent tunnel statistics to the server, only send this if compression was used.
|
// Sent tunnel statistics to the server, only send this if compression was used.
|
||||||
if ((this.bytesSent_uncompressed) && (this.bytesSent_uncompressed.toString() != this.bytesSent_actual.toString())) {
|
if ((this.bytesSent_uncompressed) && (this.bytesSent_uncompressed.toString() != this.bytesSent_actual.toString())) {
|
||||||
mesh.SendCommand({
|
mesh.SendCommand({
|
||||||
@ -1810,6 +1812,10 @@ function onTunnelClosed() {
|
|||||||
receivedRatio: this.bytesReceived_ratio
|
receivedRatio: this.bytesReceived_ratio
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
catch(z)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
//sendConsoleText("Tunnel #" + this.httprequest.index + " closed. Sent -> " + this.bytesSent_uncompressed + ' bytes (uncompressed), ' + this.bytesSent_actual + ' bytes (actual), ' + this.bytesSent_ratio + '% compression', this.httprequest.sessionid);
|
//sendConsoleText("Tunnel #" + this.httprequest.index + " closed. Sent -> " + this.bytesSent_uncompressed + ' bytes (uncompressed), ' + this.bytesSent_actual + ' bytes (actual), ' + this.bytesSent_ratio + '% compression', this.httprequest.sessionid);
|
||||||
if (this.httprequest.index) { delete tunnels[this.httprequest.index]; }
|
if (this.httprequest.index) { delete tunnels[this.httprequest.index]; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user