diff --git a/android/app/src/main/kotlin/com/edde746/plezy/mpv/MpvPlayerCore.kt b/android/app/src/main/kotlin/com/edde746/plezy/mpv/MpvPlayerCore.kt index 786fa322..db72365c 100644 --- a/android/app/src/main/kotlin/com/edde746/plezy/mpv/MpvPlayerCore.kt +++ b/android/app/src/main/kotlin/com/edde746/plezy/mpv/MpvPlayerCore.kt @@ -361,6 +361,7 @@ class MpvPlayerCore(private val activity: Activity) : } override fun event(eventId: Int) { + if (disposing) return when (eventId) { MPVLib.MPV_EVENT_END_FILE -> { val eofReached = try { MPVLib.getPropertyBoolean("eof-reached") } catch (_: Exception) { false }