aboutsummaryrefslogtreecommitdiffstats
path: root/node
diff options
context:
space:
mode:
authorVictor Farazdagi <simple.square@gmail.com>2017-04-25 23:04:02 +0800
committerVictor Farazdagi <simple.square@gmail.com>2017-04-25 23:04:02 +0800
commit5f7eb78918fe88a9e4f64e47044c29fcb934d924 (patch)
tree200f43ddb03c62e6cd3bdcc7f312ca2075f6bc87 /node
parentba3bcd16a6d99bc0e58516556df8e96b730c2d60 (diff)
downloadgo-tangerine-5f7eb78918fe88a9e4f64e47044c29fcb934d924.tar
go-tangerine-5f7eb78918fe88a9e4f64e47044c29fcb934d924.tar.gz
go-tangerine-5f7eb78918fe88a9e4f64e47044c29fcb934d924.tar.bz2
go-tangerine-5f7eb78918fe88a9e4f64e47044c29fcb934d924.tar.lz
go-tangerine-5f7eb78918fe88a9e4f64e47044c29fcb934d924.tar.xz
go-tangerine-5f7eb78918fe88a9e4f64e47044c29fcb934d924.tar.zst
go-tangerine-5f7eb78918fe88a9e4f64e47044c29fcb934d924.zip
node: fixes deadlock on Wait()
Diffstat (limited to 'node')
-rw-r--r--node/node.go1
1 files changed, 1 insertions, 0 deletions
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