Must be on main.

This commit is contained in:
Vitor Pamplona 2023-12-14 11:02:55 -05:00
parent 1a33da2537
commit e4baebf2f9

View File

@ -183,7 +183,7 @@ class MainActivity : AppCompatActivity() {
override fun onDestroy() {
Log.d("Lifetime Event", "MainActivity.onDestroy")
GlobalScope.launch(Dispatchers.IO) {
GlobalScope.launch(Dispatchers.Main) {
keepPlayingMutex?.stop()
keepPlayingMutex?.release()
keepPlayingMutex = null