set equalizer to null at releasing of the service

This commit is contained in:
tibbi 2021-02-28 22:43:28 +01:00
parent 1f0b424a13
commit b64335fe06

View file

@ -124,6 +124,7 @@ class MusicService : Service(), MediaPlayer.OnPreparedListener, MediaPlayer.OnEr
SongsDatabase.destroyInstance()
mMediaSession?.isActive = false
mEqualizer?.release()
mEqualizer = null
mSleepTimer?.cancel()
config.sleepInTS = 0L
}