mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-11 15:20:47 +01:00
Fixed extensions call running on main thread
This commit is contained in:
parent
fa3adf6c37
commit
2b85bb5fb8
1 changed files with 3 additions and 1 deletions
|
@ -29,7 +29,9 @@ internal class ExtensionGithubApi {
|
|||
suspend fun findExtensions(): List<Extension.Available> {
|
||||
val call = GET("$REPO_URL/index.json")
|
||||
|
||||
return parseResponse(network.client.newCall(call).await())
|
||||
return withContext(Dispatchers.IO) {
|
||||
parseResponse(network.client.newCall(call).await())
|
||||
}
|
||||
}
|
||||
|
||||
suspend fun checkforUpdates(context: Context): List<Extension.Installed> {
|
||||
|
|
Loading…
Reference in a new issue