Skip to content

Commit 89fde59

Browse files
authored
node: fix stopping websocket rpc.Server (ethereum#23211)
1 parent f0b1bdd commit 89fde59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node/rpcstack.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ func (h *httpServer) doStop() {
251251

252252
// Shut down the server.
253253
httpHandler := h.httpHandler.Load().(*rpcHandler)
254-
wsHandler := h.httpHandler.Load().(*rpcHandler)
254+
wsHandler := h.wsHandler.Load().(*rpcHandler)
255255
if httpHandler != nil {
256256
h.httpHandler.Store((*rpcHandler)(nil))
257257
httpHandler.server.Stop()

0 commit comments

Comments
 (0)