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

Added customui device deselection.

This commit is contained in:
Ylian Saint-Hilaire 2021-05-25 13:08:38 -07:00
parent a1cb07670d
commit 71b351add9
2 changed files with 7 additions and 7 deletions

View file

@ -295,12 +295,8 @@ function CreateMeshRelayEx(parent, ws, req, domain, user, cookie) {
}
}
// Check that both sides have websocket connections
if ((obj.ws == null) || (relayinfo.peer1.ws == null)) {
relayinfo.peer1.close();
obj.close();
return null;
}
// Check that both sides have websocket connections, this should never happen.
if ((obj.ws == null) || (relayinfo.peer1.ws == null)) { relayinfo.peer1.close(); obj.close(); return null; }
// Connect to peer
obj.peer = relayinfo.peer1;