Retry a few times if a favorites sync entry times out
This commit is contained in:
@@ -68,7 +68,14 @@ class BatchAddScreenModel(
|
||||
|
||||
splitGalleries.forEachIndexed { i, s ->
|
||||
ensureActive()
|
||||
val result = withIOContext { galleryAdder.addGallery(context, s, true) }
|
||||
val result = withIOContext {
|
||||
galleryAdder.addGallery(
|
||||
context = context,
|
||||
url = s,
|
||||
fav = true,
|
||||
retry = 2
|
||||
)
|
||||
}
|
||||
if (result is GalleryAddEvent.Success) {
|
||||
succeeded.add(s)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user