Skip to content

Commit

Permalink
node: fix stopping websocket rpc.Server (ethereum#23211)
Browse files Browse the repository at this point in the history
  • Loading branch information
Evolution404 authored Jul 15, 2021
1 parent f0b1bdd commit 89fde59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/rpcstack.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func (h *httpServer) doStop() {

// Shut down the server.
httpHandler := h.httpHandler.Load().(*rpcHandler)
wsHandler := h.httpHandler.Load().(*rpcHandler)
wsHandler := h.wsHandler.Load().(*rpcHandler)
if httpHandler != nil {
h.httpHandler.Store((*rpcHandler)(nil))
httpHandler.server.Stop()
Expand Down

0 comments on commit 89fde59

Please sign in to comment.