Skip to content

Commit 2bda604

Browse files
committed
node: fix stopping websocket rpc.Server ethereum#23211
1 parent 937b3d7 commit 2bda604

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node/rpcstack.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ func (h *httpServer) doStop() {
260260

261261
// Shut down the server.
262262
httpHandler := h.httpHandler.Load().(*rpcHandler)
263-
wsHandler := h.httpHandler.Load().(*rpcHandler)
263+
wsHandler := h.wsHandler.Load().(*rpcHandler)
264264
if httpHandler != nil {
265265
h.httpHandler.Store((*rpcHandler)(nil))
266266
httpHandler.server.Stop()

0 commit comments

Comments
 (0)