未验证 提交 89fde59a 编写于 作者: E Evolution404 提交者: GitHub

node: fix stopping websocket rpc.Server (#23211)

上级 f0b1bdda
...@@ -251,7 +251,7 @@ func (h *httpServer) doStop() { ...@@ -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()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册