summaryrefslogtreecommitdiff
path: root/contexthub/aidl/default/ContextHub.cpp
diff options
context:
space:
mode:
authorYimin Li <ymli@google.com>2022-10-21 21:00:51 -0700
committerYimin Li <ymli@google.com>2022-10-21 21:00:51 -0700
commit74f46595794c48c09a0b83eb1e908c168e6f6848 (patch)
treeb522551f1ea7f066be8bf8d0222da12ea141b666 /contexthub/aidl/default/ContextHub.cpp
parentf7939846348599e6f9e9e3d31bc36d6afd504177 (diff)
parent5590d5a43648027c54469d61b958c9bc26a271e9 (diff)
Merge commit '5590d5a43648027c54469d61b958c9bc26a271e9' of sso://googleplex-android/platform/hardware/interfaces into HEAD
Change-Id: I6999b8820441818aa1a4de794c9a0ce0f65b8b88
Diffstat (limited to 'contexthub/aidl/default/ContextHub.cpp')
-rw-r--r--contexthub/aidl/default/ContextHub.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/contexthub/aidl/default/ContextHub.cpp b/contexthub/aidl/default/ContextHub.cpp
index 4c23cbc8bf..35e4650ef2 100644
--- a/contexthub/aidl/default/ContextHub.cpp
+++ b/contexthub/aidl/default/ContextHub.cpp
@@ -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