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

Commit e515579f authored by Steven Moreland's avatar Steven Moreland Committed by Android (Google) Code Review
Browse files

Merge "libbinder: avoid re-registering callback" into rvc-dev

parents 8aa787d2 6077425c
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -82,12 +82,12 @@ bool ClientCounterCallback::registerService(const sp<IBinder>& service, const st
        return false;
    }

    if (!reRegister) {
        if (!manager->registerClientCallback(name, service, this).isOk()) {
            ALOGE("Failed to add client callback for service %s", name.c_str());
            return false;
        }

    if (!reRegister) {
        // Only add this when a service is added for the first time, as it is not removed
        mRegisteredServices[name] = {service, allowIsolated, dumpFlags};
    }