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

Commit dc49bab1 authored by Iliyan Malchev's avatar Iliyan Malchev Committed by android-build-merger
Browse files

Merge "binder: allow repeated invocations of initWithDriver" into oc-dev am: 11c1acc3

am: df4eca51

Change-Id: I670c44924cd989de288682ffdd58ea11b66e49c5
parents b945c034 df4eca51
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -79,6 +79,11 @@ sp<ProcessState> ProcessState::initWithDriver(const char* driver)
{
    Mutex::Autolock _l(gProcessMutex);
    if (gProcess != NULL) {
        // Allow for initWithDriver to be called repeatedly with the same
        // driver.
        if (!strcmp(gProcess->getDriverName().c_str(), driver)) {
            return gProcess;
        }
        LOG_ALWAYS_FATAL("ProcessState was already initialized.");
    }
    gProcess = new ProcessState(driver);