diff --git a/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/util/source/GetCatalogueSource.kt b/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/util/source/GetCatalogueSource.kt index f3843e048..aefa43797 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/util/source/GetCatalogueSource.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/util/source/GetCatalogueSource.kt @@ -83,6 +83,8 @@ object GetCatalogueSource { } fun unregisterAllCatalogueSources() { - sourceCache.clear() + (sourceCache - 0L).forEach { (id, _) -> + sourceCache.remove(id) + } } }