good morning!!!!

Skip to content
Snippets Groups Projects
Commit e4cb7b80 authored by Gary Rong's avatar Gary Rong Committed by Péter Szilágyi
Browse files

rpc: cancel root context after all requests are served (#19430)

parent 22e1d2ce
No related branches found
No related tags found
No related merge requests found
......@@ -151,8 +151,8 @@ func (h *handler) handleMsg(msg *jsonrpcMessage) {
// call goroutines to shut down.
func (h *handler) close(err error, inflightReq *requestOp) {
h.cancelAllRequests(err, inflightReq)
h.cancelRoot()
h.callWG.Wait()
h.cancelRoot()
h.cancelServerSubscriptions(err)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment