Patch for concurrent iterator & others (onto v1.11.6) #386
@ -251,7 +251,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 New Issue
Block a user