From e9247b6b1eb13e77b248f9d8841eb06f50cf1297 Mon Sep 17 00:00:00 2001 From: Sonic Date: Tue, 26 Mar 2019 10:14:55 +0800 Subject: dex: fix deadlock (#299) --- dex/blockproposer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dex/blockproposer.go b/dex/blockproposer.go index dc2b22e16..65f9f9e30 100644 --- a/dex/blockproposer.go +++ b/dex/blockproposer.go @@ -227,7 +227,7 @@ ListenLoop: log.Debug("no new chain head for a while") if p := b.dex.protocolManager.peers.BestPeer(); p != nil { log.Debug("try force sync with peer", "id", p.id) - b.dex.protocolManager.synchronise(p, true) + go b.dex.protocolManager.synchronise(p, true) } else { log.Debug("no peer to sync") } -- cgit