Fix RepoUpdater force refresh bug

This commit is contained in:
topjohnwu 2020-07-07 03:18:01 -07:00
parent 77032eced1
commit ae6dd50ccd

View File

@ -22,7 +22,7 @@ class RepoUpdater(
private suspend fun forcedReload(cached: MutableSet<String>) = coroutineScope { private suspend fun forcedReload(cached: MutableSet<String>) = coroutineScope {
cached.forEach { cached.forEach {
launch { launch {
val repo = Repo(it) val repo = repoDB.getRepo(it)!!
try { try {
repo.update() repo.update()
repoDB.addRepo(repo) repoDB.addRepo(repo)