diff --git a/app/src/main/java/com/topjohnwu/magisk/core/tasks/RepoUpdater.kt b/app/src/main/java/com/topjohnwu/magisk/core/tasks/RepoUpdater.kt index d2888165f..fb024057a 100644 --- a/app/src/main/java/com/topjohnwu/magisk/core/tasks/RepoUpdater.kt +++ b/app/src/main/java/com/topjohnwu/magisk/core/tasks/RepoUpdater.kt @@ -22,7 +22,7 @@ class RepoUpdater( private suspend fun forcedReload(cached: MutableSet) = coroutineScope { cached.forEach { launch { - val repo = Repo(it) + val repo = repoDB.getRepo(it)!! try { repo.update() repoDB.addRepo(repo)