mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-05 10:55:02 +00:00
Merge pull request #14379 from farazdagi/fix/deadlock-in-node-wait
node: fixes deadlock on Wait()
This commit is contained in:
commit
8dce4c283d
1 changed files with 1 additions and 0 deletions
|
|
@ -536,6 +536,7 @@ func (n *Node) Stop() error {
|
|||
func (n *Node) Wait() {
|
||||
n.lock.RLock()
|
||||
if n.server == nil {
|
||||
n.lock.RUnlock()
|
||||
return
|
||||
}
|
||||
stop := n.stop
|
||||
|
|
|
|||
Loading…
Reference in a new issue