mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 10:50:44 +00:00
parent
a189b3c36f
commit
e966001937
1 changed files with 1 additions and 1 deletions
|
|
@ -261,7 +261,7 @@ func (h *httpServer) doStop() {
|
||||||
|
|
||||||
// Shut down the server.
|
// Shut down the server.
|
||||||
httpHandler := h.httpHandler.Load().(*rpcHandler)
|
httpHandler := h.httpHandler.Load().(*rpcHandler)
|
||||||
wsHandler := h.httpHandler.Load().(*rpcHandler)
|
wsHandler := h.wsHandler.Load().(*rpcHandler)
|
||||||
if httpHandler != nil {
|
if httpHandler != nil {
|
||||||
h.httpHandler.Store((*rpcHandler)(nil))
|
h.httpHandler.Store((*rpcHandler)(nil))
|
||||||
httpHandler.server.Stop()
|
httpHandler.server.Stop()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue