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

Commit b92ce720 authored by Steven Moreland's avatar Steven Moreland Committed by Automerger Merge Worker
Browse files

Merge "lazy AIDL services: multiple callbacks" am: 1f0165d6 am: ec14d4f1

parents b25e8b6a ec14d4f1
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -690,6 +690,11 @@ Status ServiceManager::registerClientCallback(const std::string& name, const sp<
        return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE, "Couldn't linkToDeath.");
    }

    // make sure all callbacks have been told about a consistent state - b/278038751
    if (serviceIt->second.hasClients) {
        cb->onClients(service, true);
    }

    mNameToClientCallback[name].push_back(cb);

    return Status::ok();