mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-13 11:36:37 +00:00
rpc: cancel root context after all requests are served (#19430)
This commit is contained in:
parent
22e1d2ce03
commit
e4cb7b80d5
1 changed files with 1 additions and 1 deletions
|
|
@ -151,8 +151,8 @@ func (h *handler) handleMsg(msg *jsonrpcMessage) {
|
||||||
// call goroutines to shut down.
|
// call goroutines to shut down.
|
||||||
func (h *handler) close(err error, inflightReq *requestOp) {
|
func (h *handler) close(err error, inflightReq *requestOp) {
|
||||||
h.cancelAllRequests(err, inflightReq)
|
h.cancelAllRequests(err, inflightReq)
|
||||||
h.cancelRoot()
|
|
||||||
h.callWG.Wait()
|
h.callWG.Wait()
|
||||||
|
h.cancelRoot()
|
||||||
h.cancelServerSubscriptions(err)
|
h.cancelServerSubscriptions(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue