mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-26 22:23:14 -05:00
Fix const error (#4519)
This commit is contained in:
parent
1abaa54b62
commit
3829dbcf41
@ -2455,7 +2455,7 @@ function CreateMeshCentralServer(config, args) {
|
||||
if (serverid == null) { serverid = obj.serverId; }
|
||||
if (obj.peerConnectivityByNode[serverid] == null) return; // Guard against unknown serverid's
|
||||
var eventConnectChange = 0;
|
||||
const state = obj.peerConnectivityByNode[serverid][nodeid];
|
||||
var state = obj.peerConnectivityByNode[serverid][nodeid];
|
||||
if (state) {
|
||||
// Change the connection in the node and mesh state lists
|
||||
if ((state.connectivity & connectType) == 0) { state.connectivity |= connectType; eventConnectChange = 1; }
|
||||
@ -2553,7 +2553,7 @@ function CreateMeshCentralServer(config, args) {
|
||||
// Remove the agent connection from the nodes connection list
|
||||
if (serverid == null) { serverid = obj.serverId; }
|
||||
if (obj.peerConnectivityByNode[serverid] == null) return; // Guard against unknown serverid's
|
||||
const state = obj.peerConnectivityByNode[serverid][nodeid];
|
||||
var state = obj.peerConnectivityByNode[serverid][nodeid];
|
||||
if (state == null) return;
|
||||
|
||||
// If existing state exist, remove this connection
|
||||
|
Loading…
x
Reference in New Issue
Block a user