diff options
author | Victor Farazdagi <simple.square@gmail.com> | 2017-04-25 23:04:02 +0800 |
---|---|---|
committer | Victor Farazdagi <simple.square@gmail.com> | 2017-04-25 23:04:02 +0800 |
commit | 5f7eb78918fe88a9e4f64e47044c29fcb934d924 (patch) | |
tree | 200f43ddb03c62e6cd3bdcc7f312ca2075f6bc87 /node/node.go | |
parent | ba3bcd16a6d99bc0e58516556df8e96b730c2d60 (diff) | |
download | dexon-5f7eb78918fe88a9e4f64e47044c29fcb934d924.tar dexon-5f7eb78918fe88a9e4f64e47044c29fcb934d924.tar.gz dexon-5f7eb78918fe88a9e4f64e47044c29fcb934d924.tar.bz2 dexon-5f7eb78918fe88a9e4f64e47044c29fcb934d924.tar.lz dexon-5f7eb78918fe88a9e4f64e47044c29fcb934d924.tar.xz dexon-5f7eb78918fe88a9e4f64e47044c29fcb934d924.tar.zst dexon-5f7eb78918fe88a9e4f64e47044c29fcb934d924.zip |
node: fixes deadlock on Wait()
Diffstat (limited to 'node/node.go')
-rw-r--r-- | node/node.go | 1 |
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 |