diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-04-25 23:47:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-25 23:47:55 +0800 |
commit | 8dce4c283dda3a8e10aa30dadab05a8c0dd9e19d (patch) | |
tree | 80c8d695b9cf827df956c05031a0e6b707005f0a | |
parent | fff16169c64a83d57d2eed35b6a2e33248c7d5eb (diff) | |
parent | 5f7eb78918fe88a9e4f64e47044c29fcb934d924 (diff) | |
download | go-tangerine-8dce4c283dda3a8e10aa30dadab05a8c0dd9e19d.tar go-tangerine-8dce4c283dda3a8e10aa30dadab05a8c0dd9e19d.tar.gz go-tangerine-8dce4c283dda3a8e10aa30dadab05a8c0dd9e19d.tar.bz2 go-tangerine-8dce4c283dda3a8e10aa30dadab05a8c0dd9e19d.tar.lz go-tangerine-8dce4c283dda3a8e10aa30dadab05a8c0dd9e19d.tar.xz go-tangerine-8dce4c283dda3a8e10aa30dadab05a8c0dd9e19d.tar.zst go-tangerine-8dce4c283dda3a8e10aa30dadab05a8c0dd9e19d.zip |
Merge pull request #14379 from farazdagi/fix/deadlock-in-node-wait
node: fixes deadlock on Wait()
-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 |