Skip to content

Commit e4cb7b8

Browse files
rjl493456442karalabe
authored andcommitted
rpc: cancel root context after all requests are served (#19430)
1 parent 22e1d2c commit e4cb7b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎rpc/handler.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ func (h *handler) handleMsg(msg *jsonrpcMessage) {
151151
// call goroutines to shut down.
152152
func (h *handler) close(err error, inflightReq *requestOp) {
153153
h.cancelAllRequests(err, inflightReq)
154-
h.cancelRoot()
155154
h.callWG.Wait()
155+
h.cancelRoot()
156156
h.cancelServerSubscriptions(err)
157157
}
158158

0 commit comments

Comments
 (0)