fix(android): avoid crash multiplayer with notification (#3931)

This commit is contained in:
Olivier Bouillet 2024-06-22 10:55:40 +02:00 committed by GitHub
parent 91751abc87
commit 104ee703ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,8 +69,6 @@ class VideoPlaybackService : MediaSessionService() {
hidePlayerNotification(player) hidePlayerNotification(player)
val session = mediaSessionsList.remove(player) val session = mediaSessionsList.remove(player)
session?.release() session?.release()
sourceActivity = null
if (mediaSessionsList.isEmpty()) { if (mediaSessionsList.isEmpty()) {
cleanup() cleanup()
stopSelf() stopSelf()