Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dcfefde6 authored by beanz's avatar beanz
Browse files

fix a race condition of MediaPlayerServce::Client::mClient



there will be race condition between mClient.clear in MediaPlayerServce::Client::disconnect method
and c=client->mClient in in MediaPlayerServce::Client::notify method

Change-Id: I767294c4cb864c08e9c0e9f23d6d304a39016205
Signed-off-by: default avatarbeanz <beanz@marvell.com>
parent 1baa01a5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -523,8 +523,8 @@ void MediaPlayerService::Client::disconnect()
    {
        Mutex::Autolock l(mLock);
        p = mPlayer;
    }
        mClient.clear();
    }

    mPlayer.clear();