Merge pull request #14379 from farazdagi/fix/deadlock-in-node-wait

node: fixes deadlock on Wait()
pull/14387/head
Péter Szilágyi 8 years ago committed by GitHub
commit 8dce4c283d
  1. 1
      node/node.go

@ -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…
Cancel
Save