mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-30 04:52:32 +02:00
Must be on main.
This commit is contained in:
@@ -183,7 +183,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
override fun onDestroy() {
|
override fun onDestroy() {
|
||||||
Log.d("Lifetime Event", "MainActivity.onDestroy")
|
Log.d("Lifetime Event", "MainActivity.onDestroy")
|
||||||
|
|
||||||
GlobalScope.launch(Dispatchers.IO) {
|
GlobalScope.launch(Dispatchers.Main) {
|
||||||
keepPlayingMutex?.stop()
|
keepPlayingMutex?.stop()
|
||||||
keepPlayingMutex?.release()
|
keepPlayingMutex?.release()
|
||||||
keepPlayingMutex = null
|
keepPlayingMutex = null
|
||||||
|
Reference in New Issue
Block a user