diff options
author | Sonic <sonic@dexon.org> | 2019-03-26 10:14:55 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-13 18:11:44 +0800 |
commit | e9247b6b1eb13e77b248f9d8841eb06f50cf1297 (patch) | |
tree | 9212898873b1b87707213643e9b1f6c0fa6ee4ae /dex | |
parent | 81785c005e3ccea35570a5f525fe9f4c17949e6c (diff) | |
download | go-tangerine-e9247b6b1eb13e77b248f9d8841eb06f50cf1297.tar go-tangerine-e9247b6b1eb13e77b248f9d8841eb06f50cf1297.tar.gz go-tangerine-e9247b6b1eb13e77b248f9d8841eb06f50cf1297.tar.bz2 go-tangerine-e9247b6b1eb13e77b248f9d8841eb06f50cf1297.tar.lz go-tangerine-e9247b6b1eb13e77b248f9d8841eb06f50cf1297.tar.xz go-tangerine-e9247b6b1eb13e77b248f9d8841eb06f50cf1297.tar.zst go-tangerine-e9247b6b1eb13e77b248f9d8841eb06f50cf1297.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") } |