forked from cerc-io/plugeth
node: fixes deadlock on Wait()
This commit is contained in:
parent
ba3bcd16a6
commit
5f7eb78918
@ -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 New Issue
Block a user