mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	Fix const error (#4519)
This commit is contained in:
		
							parent
							
								
									1abaa54b62
								
							
						
					
					
						commit
						3829dbcf41
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue