eth: check if downloader is busy before showing log message

This commit is contained in:
obscuren
2015-04-28 21:18:08 +02:00
parent 7ac24d551b
commit 4b7bdc3766
2 changed files with 9 additions and 0 deletions

View File

@ -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()
}