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

Commit 20d03805 authored by Zhijun He's avatar Zhijun He
Browse files

Fix AppOsManager missing mutex unlock.

Need unlock the mutex after finish the getToken operation.

Change-Id: Icd83b383913d06e4d60976857aa314c3008ebea1
parent 1962f651
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ static const sp<IBinder>& getToken(const sp<IAppOpsService>& service) {
    if (gToken == NULL) {
        gToken = service->getToken(new BBinder());
    }
    pthread_mutex_unlock(&gTokenMutex);
    return gToken;
}