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

Commit 25af133b 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 am: b92ce720

parents 6a208de5 b92ce720
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -700,6 +700,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();