Don't retry too many times on the same request
This commit is contained in:
1 parent
76223a2cd2
commit
c994890f28
1 file changed
+1
-1
@@ -685,7 +685,7 @@ class SpiderQueen private constructor(val galleryInfo: GalleryInfo) : CoroutineS
|
||||
}
|
||||
checkNotNull(targetImageUrl)
|
||||
|
||||
repeat(3) { times ->
|
||||
repeat(2) { times ->
|
||||
runCatching {
|
||||
Log.d(WORKER_DEBUG_TAG, "Start download image $index attempt #$times")
|
||||
val success = withTimeout(downloadTimeout) {
|
||||
|
||||
Reference in new issue
Block a user