Skip to content

Commit a5326ca

Browse files
author
Cruz Monrreal
authored
Merge pull request #6814 from pan-/fix-discovery-termination
GenericGattClient: Fix discovery termination.
2 parents 11901f1 + fd5903c commit a5326ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

features/FEATURE_BLE/source/generic/GenericGattClient.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ struct GenericGattClient::DiscoveryControlBlock : public ProcedureControlBlock {
147147
const AttErrorResponse& error = static_cast<const AttErrorResponse&>(message);
148148
if (error.error_code != AttErrorResponse::ATTRIBUTE_NOT_FOUND) {
149149
terminate(client);
150+
return;
150151
}
151152

152153
switch (error.request_opcode) {

0 commit comments

Comments
 (0)