node: fixes deadlock on Wait()

pull/14379/head
Victor Farazdagi 8 years ago
parent ba3bcd16a6
commit 5f7eb78918
  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