Skip to content

Commit

Permalink
Fix NetworkManager Access (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
tholonious authored Mar 8, 2024
1 parent 3f2d0c2 commit 89e8133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/admin_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,9 @@ func (fes *APIServer) _handleDisconnectDeSoNode(

// Manually remove the peer from the connection manager and mark it as such
// so that the connection manager won't reconnect to it or replace it.
remoteNode := fes.backendServer.GetNetworkManager().GetRemoteNodeManager().GetRemoteNodeFromPeer(peerFound)
remoteNode := fes.backendServer.GetNetworkManager().GetRemoteNodeFromPeer(peerFound)
if remoteNode != nil {
fes.backendServer.GetNetworkManager().GetRemoteNodeManager().Disconnect(remoteNode)
fes.backendServer.GetNetworkManager().Disconnect(remoteNode)
}

res := NodeControlResponse{
Expand Down

0 comments on commit 89e8133

Please sign in to comment.