Merge pull request #1031 from Chlup/fix_network_test
Fix error handling in BlockDownloaderImpl
This commit is contained in:
commit
ac782bbfa6
|
@ -139,10 +139,10 @@ actor BlockDownloaderImpl {
|
|||
isDownloading = false
|
||||
}
|
||||
} catch {
|
||||
lastError = error
|
||||
if Task.isCancelled {
|
||||
logger.debug("Blocks downloading canceled.")
|
||||
} else {
|
||||
lastError = error
|
||||
logger.error("Blocks downloading failed: \(error)")
|
||||
}
|
||||
isDownloading = false
|
||||
|
|
Loading…
Reference in New Issue