Prevent IndexOutOfBoundsException in "libraryUpdate" subscription (#1320)

This commit is contained in:
schroda
2025-03-23 03:50:25 +01:00
committed by GitHub
parent 4c5598cedf
commit 78fd09c728

View File

@@ -59,8 +59,8 @@ class UpdateSubscription {
UpdaterUpdates( UpdaterUpdates(
UpdateUpdates( UpdateUpdates(
updates.isRunning, updates.isRunning,
updates.categoryUpdates.subList(0, maxUpdates), updates.categoryUpdates.take(maxUpdates),
updates.mangaUpdates.subList(0, maxUpdatesAfterCategoryUpdates), updates.mangaUpdates.take(maxUpdatesAfterCategoryUpdates),
updates.totalJobs, updates.totalJobs,
updates.finishedJobs, updates.finishedJobs,
updates.skippedCategoriesCount, updates.skippedCategoriesCount,