make sure operations cancel in a timely manner
This commit is contained in:
parent
b5cd1eb84f
commit
e107170e14
|
@ -206,7 +206,7 @@ class CompactBlockBatchDownloadOperation: ZcashOperation {
|
|||
localError = error
|
||||
retries = retries + 1
|
||||
}
|
||||
} while !success && retries < maxRetries
|
||||
} while !isCancelled && !success && retries < maxRetries
|
||||
if retries >= maxRetries {
|
||||
throw CompactBlockBatchDownloadOperationError.batchDownloadFailed(range: range, error: localError)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue