1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-02-12 02:51:50 +00:00

Fixed server crash on device file download.

This commit is contained in:
Ylian Saint-Hilaire 2020-11-14 22:14:02 -08:00
parent c20f388fea
commit fd93edf0eb

View file

@ -202,7 +202,7 @@ module.exports.CreateMeshDeviceFile = function (parent, ws, res, req, domain, us
} }
} else { } else {
// HTTP connection, Send message to other peers that we have this connection // HTTP connection, Send message to other peers that we have this connection
parent.parent.multiServer.DispatchMessage(JSON.stringify({ action: 'relay', id: obj.id })); if (parent.parent.multiServer != null) { parent.parent.multiServer.DispatchMessage(JSON.stringify({ action: 'relay', id: obj.id })); }
return; return;
} }
} }