From 5f7eb78918fe88a9e4f64e47044c29fcb934d924 Mon Sep 17 00:00:00 2001 From: Victor Farazdagi Date: Tue, 25 Apr 2017 18:04:02 +0300 Subject: node: fixes deadlock on Wait() --- node/node.go | 1 + 1 file changed, 1 insertion(+) diff --git a/node/node.go b/node/node.go index dc2ff0701..a372b1c25 100644 --- a/node/node.go +++ b/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 -- cgit