mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
eth: abort requiredBlocks check if peer handler terminated (#32413)
This commit is contained in:
parent
56edd21453
commit
75fc56f27d
1 changed files with 2 additions and 0 deletions
|
|
@ -352,6 +352,8 @@ func (h *handler) runEthPeer(peer *eth.Peer, handler eth.Handler) error {
|
|||
case <-timeout.C:
|
||||
peer.Log().Warn("Required block challenge timed out, dropping", "addr", peer.RemoteAddr(), "type", peer.Name())
|
||||
h.removePeer(peer.ID())
|
||||
case <-dead:
|
||||
// Peer handler terminated, abort all goroutines
|
||||
}
|
||||
}(number, hash, req)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue