Skip to content

Commit

Permalink
Fix a rare crash when starting the app
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxr1998 authored and nielsvanvelzen committed Aug 1, 2021
1 parent c48e537 commit 0de4cbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/org/jellyfin/mobile/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class MainActivity : AppCompatActivity() {
}

// Load UI
lifecycleScope.launch {
lifecycleScope.launchWhenStarted {
mainViewModel.serverState.collect { state ->
with(supportFragmentManager) {
when (state) {
Expand Down

0 comments on commit 0de4cbd

Please sign in to comment.