aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader/downloader.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-19 01:14:25 +0800
committerobscuren <geffobscura@gmail.com>2015-04-19 01:14:25 +0800
commit78e37e98e77b467e6950922da4ea99ff146ab21f (patch)
treead30e660d547cc8824717e8443ff4b01e0ed2c40 /eth/downloader/downloader.go
parent0d536734fe10e62dce86db1a6128b383ef66921d (diff)
downloadgo-tangerine-78e37e98e77b467e6950922da4ea99ff146ab21f.tar
go-tangerine-78e37e98e77b467e6950922da4ea99ff146ab21f.tar.gz
go-tangerine-78e37e98e77b467e6950922da4ea99ff146ab21f.tar.bz2
go-tangerine-78e37e98e77b467e6950922da4ea99ff146ab21f.tar.lz
go-tangerine-78e37e98e77b467e6950922da4ea99ff146ab21f.tar.xz
go-tangerine-78e37e98e77b467e6950922da4ea99ff146ab21f.tar.zst
go-tangerine-78e37e98e77b467e6950922da4ea99ff146ab21f.zip
downloader: fixed a race condition for download status
Diffstat (limited to 'eth/downloader/downloader.go')
-rw-r--r--eth/downloader/downloader.go1
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