diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-19 01:14:25 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-19 01:14:25 +0800 |
commit | 78e37e98e77b467e6950922da4ea99ff146ab21f (patch) | |
tree | ad30e660d547cc8824717e8443ff4b01e0ed2c40 /eth/downloader | |
parent | 0d536734fe10e62dce86db1a6128b383ef66921d (diff) | |
download | dexon-78e37e98e77b467e6950922da4ea99ff146ab21f.tar dexon-78e37e98e77b467e6950922da4ea99ff146ab21f.tar.gz dexon-78e37e98e77b467e6950922da4ea99ff146ab21f.tar.bz2 dexon-78e37e98e77b467e6950922da4ea99ff146ab21f.tar.lz dexon-78e37e98e77b467e6950922da4ea99ff146ab21f.tar.xz dexon-78e37e98e77b467e6950922da4ea99ff146ab21f.tar.zst dexon-78e37e98e77b467e6950922da4ea99ff146ab21f.zip |
downloader: fixed a race condition for download status
Diffstat (limited to 'eth/downloader')
-rw-r--r-- | eth/downloader/downloader.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go index 6dce40b04..290e3b474 100644 --- a/eth/downloader/downloader.go +++ b/eth/downloader/downloader.go @@ -293,7 +293,6 @@ out: d.queue.put(chunk.hashes) } } - atomic.StoreInt32(&d.downloadingBlocks, 1) } else if len(d.queue.fetching) == 0 { // When there are no more queue and no more `fetching`. We can // safely assume we're done. Another part of the process will check |