Merge pull request #14379 from farazdagi/fix/deadlock-in-node-wait
node: fixes deadlock on Wait()
This commit is contained in:
commit
8dce4c283d
@ -536,6 +536,7 @@ func (n *Node) Stop() error {
|
|||||||
func (n *Node) Wait() {
|
func (n *Node) Wait() {
|
||||||
n.lock.RLock()
|
n.lock.RLock()
|
||||||
if n.server == nil {
|
if n.server == nil {
|
||||||
|
n.lock.RUnlock()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
stop := n.stop
|
stop := n.stop
|
||||||
|
Loading…
Reference in New Issue
Block a user