Retry a few times if a favorites sync entry times out

This commit is contained in:
Jobobby04
2023-05-08 17:56:27 -04:00
parent efbdab973e
commit 1f84918749
3 changed files with 48 additions and 15 deletions
@@ -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 {