Releases the video player on Mutex when destroying the app.

This commit is contained in:
Vitor Pamplona
2023-07-21 20:57:07 -04:00
parent 7e03870c0b
commit 8a12cc3cce

View File

@@ -140,6 +140,8 @@ class MainActivity : AppCompatActivity() {
override fun onDestroy() {
super.onDestroy()
keepPlayingMutex?.stop()
keepPlayingMutex?.release()
keepPlayingMutex = null
}
/**