diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-29 03:18:08 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-29 18:51:05 +0800 |
commit | 4b7bdc3766e1e06ebd6f865f0fdda26f9b331932 (patch) | |
tree | dd563a35619f732bb2ad9f5dfeb1a885e9fa4398 /eth/downloader | |
parent | 7ac24d551bf41bca4deec9f47239c4c0d052e721 (diff) | |
download | dexon-4b7bdc3766e1e06ebd6f865f0fdda26f9b331932.tar dexon-4b7bdc3766e1e06ebd6f865f0fdda26f9b331932.tar.gz dexon-4b7bdc3766e1e06ebd6f865f0fdda26f9b331932.tar.bz2 dexon-4b7bdc3766e1e06ebd6f865f0fdda26f9b331932.tar.lz dexon-4b7bdc3766e1e06ebd6f865f0fdda26f9b331932.tar.xz dexon-4b7bdc3766e1e06ebd6f865f0fdda26f9b331932.tar.zst dexon-4b7bdc3766e1e06ebd6f865f0fdda26f9b331932.zip |
eth: check if downloader is busy before showing log message
Diffstat (limited to 'eth/downloader')
-rw-r--r-- | eth/downloader/downloader.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go index 60d908758..63d202a7f 100644 --- a/eth/downloader/downloader.go +++ b/eth/downloader/downloader.go @@ -472,3 +472,7 @@ func (d *Downloader) isProcessing() bool { func (d *Downloader) isBusy() bool { return d.isFetchingHashes() || d.isDownloadingBlocks() || d.isProcessing() } + +func (d *Downloader) IsBusy() bool { + return d.isBusy() +} |