From eaadce83f3446f0d7fcc6258b2506bb3ae76fa3a Mon Sep 17 00:00:00 2001
From: Sonic <sonic@dexon.org>
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 v1.2.3