Cleanup library update a bit
This commit is contained in:
parent
a29ddaaf1c
commit
4e8142b5b8
@ -361,11 +361,11 @@ class LibraryUpdateService(
|
||||
withIOContext {
|
||||
mangaToUpdate.groupBy { it.source }
|
||||
.filterNot { it.key in LIBRARY_UPDATE_EXCLUDED_SOURCES }
|
||||
.values.map { mangaInSource ->
|
||||
.values
|
||||
.map { mangaInSource ->
|
||||
async {
|
||||
semaphore.withPermit {
|
||||
mangaInSource
|
||||
.onEach { manga ->
|
||||
mangaInSource.forEach { manga ->
|
||||
if (updateJob?.isActive != true) {
|
||||
return@async
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user