summaryrefslogtreecommitdiff
path: root/contexthub/aidl/default/ContextHub.cpp
diff options
context:
space:
mode:
authorMatt Lee <matthewhlee@google.com>2022-12-06 21:38:20 -0800
committerMatt Lee <matthewhlee@google.com>2022-12-06 21:38:20 -0800
commit3cdda9badd55710864ebaade7a4b8446adee38a6 (patch)
tree142a3767bf6b65065cde85b8917a869ef74c4c6b /contexthub/aidl/default/ContextHub.cpp
parenta9ebb32149d2717dcfb3a9d1ea80dbe08be5c47b (diff)
parent972d05917e37e520229d71881940dcdeb11e2964 (diff)
Merge t-qpr-2022-12
Change-Id: I86a901f08eb87588bd2163cf8287e7dacea699b6
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