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

Commit c7b72345 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Modify onHostEndpointDisconnected to always return OK"

parents 8c86315f bb1d8bfc
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -107,10 +107,9 @@ ScopedAStatus ContextHub::onHostEndpointConnected(const HostEndpointInfo& in_inf
ScopedAStatus ContextHub::onHostEndpointDisconnected(char16_t in_hostEndpointId) {
    if (mConnectedHostEndpoints.count(in_hostEndpointId) > 0) {
        mConnectedHostEndpoints.erase(in_hostEndpointId);
        return ndk::ScopedAStatus::ok();
    } else {
        return ndk::ScopedAStatus(AStatus_fromExceptionCode(EX_ILLEGAL_ARGUMENT));
    }

    return ndk::ScopedAStatus::ok();
}

}  // namespace contexthub