Skip to content

Commit

Permalink
fix(android): ensure player do not crash due to null pointer exception
Browse files Browse the repository at this point in the history
  • Loading branch information
freeboub committed Jun 21, 2024
1 parent 24321eb commit 7e1d977
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ class VideoPlaybackService : MediaSessionService() {
hidePlayerNotification(player)
val session = mediaSessionsList.remove(player)
session?.release()
sourceActivity = null

if (mediaSessionsList.isEmpty()) {
cleanup()
stopSelf()
Expand Down

0 comments on commit 7e1d977

Please sign in to comment.