mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-01 00:53:47 +00:00
node: fix stopping websocket rpc.Server (#23211)
This commit is contained in:
parent
f0b1bddac4
commit
89fde59a80
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue