1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Fixed possible server exceptions.

This commit is contained in:
Ylian Saint-Hilaire 2021-01-26 00:09:28 -08:00
parent dc9a9264dd
commit eb4c7995da
2 changed files with 7 additions and 2 deletions

View file

@ -3659,7 +3659,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
// Log to recording file
if (ws.logfile == null) {
// Forward data to the associated TCP connection.
ws.forwardclient.write(data);
try { ws.forwardclient.write(data); } catch (ex) { }
} else {
// Log to recording file
recordingEntry(ws.logfile.fd, 2, 2, data, function () { try { ws.forwardclient.write(data); } catch (ex) { } });