mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
rpc: fix goroutine leaks in client handler
This commit is contained in:
parent
fc12dbe40b
commit
7ef9c891dc
1 changed files with 1 additions and 1 deletions
|
|
@ -315,8 +315,8 @@ func (h *handler) handleNonBatchCall(cp *callProc, 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.callWG.Wait()
|
|
||||||
h.cancelRoot()
|
h.cancelRoot()
|
||||||
|
h.callWG.Wait()
|
||||||
h.cancelServerSubscriptions(err)
|
h.cancelServerSubscriptions(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue