make enterSleepState() synchronized.

There are a few crashes in the play store where the framework complains that we are underlocked.
Maybe this races with onDestroy() in some rare cases.
This commit is contained in:
Adrian Ulrich committed 2018-10-13 09:42:52 +02:00
1 parent 8e607cb242
commit 12824fd47b
1 file changed
+1 -1
@@ -770,7 +770,7 @@ public final class PlaybackService extends Service
* Closes any open AudioFX session and releases
* our wakelock if held
*/
private void enterSleepState()
private synchronized void enterSleepState()
{
if (mMediaPlayer != null) {
if (mMediaPlayerAudioFxActive) {