Skip to content

Commit

Permalink
fix: network on mainThread
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Apr 30, 2024
1 parent 6a9f413 commit 9301fe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/kotlin/li/songe/gkd/MainViewModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class MainViewModel : ViewModel() {
}

if (storeFlow.value.autoCheckAppUpdate) {
viewModelScope.launch {
viewModelScope.launch(Dispatchers.IO) {
try {
checkUpdate()
} catch (e: Exception) {
Expand Down

0 comments on commit 9301fe0

Please sign in to comment.