Commit ae6dd50c authored by topjohnwu's avatar topjohnwu

Fix RepoUpdater force refresh bug

parent 77032ece
...@@ -22,7 +22,7 @@ class RepoUpdater( ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment