Skip to content

Commit

Permalink
Fix for duplicate read
Browse files Browse the repository at this point in the history
  • Loading branch information
jobobby04 committed Mar 2, 2024
1 parent 97f22c5 commit 6c563d7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,9 @@ class LibraryUpdateJob(private val context: Context, workerParams: WorkerParamet
readChapters.any { it.chapterNumber == chapter.chapterNumber }
}

setReadStatus.await(true, *newReadChapters.toTypedArray())
if (newReadChapters.isNotEmpty()) {
setReadStatus.await(true, *newReadChapters.toTypedArray())
}

this.filterNot { newReadChapters.contains(it) }
} else {
Expand Down

0 comments on commit 6c563d7

Please sign in to comment.