fix(android): avoid crash multiplayer with notification (#3931)
This commit is contained in:
parent
91751abc87
commit
104ee703ba
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user