diff options
author | Sonic <sonic@dexon.org> | 2019-03-26 10:14:55 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:58 +0800 |
commit | 183bf4eae4550facc4b4565f70ff6ca7c479a1f9 (patch) | |
tree | 27a866edd9a42cae332d37aac381ad5c1c866512 /dex | |
parent | 7065f0d194c0eea5f08d835e15308f957cb1c7eb (diff) | |
download | dexon-183bf4eae4550facc4b4565f70ff6ca7c479a1f9.tar.gz dexon-183bf4eae4550facc4b4565f70ff6ca7c479a1f9.tar.zst dexon-183bf4eae4550facc4b4565f70ff6ca7c479a1f9.zip |
dex: fix deadlock (#299)
Diffstat (limited to 'dex')
-rw-r--r-- | dex/blockproposer.go | 2 |
1 files changed, 1 insertions, 1 deletions
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") } |