mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #6814 from pan-/fix-discovery-termination
GenericGattClient: Fix discovery termination.pull/6842/merge
commit
a5326ca047
|
@ -147,6 +147,7 @@ struct GenericGattClient::DiscoveryControlBlock : public ProcedureControlBlock {
|
||||||
const AttErrorResponse& error = static_cast<const AttErrorResponse&>(message);
|
const AttErrorResponse& error = static_cast<const AttErrorResponse&>(message);
|
||||||
if (error.error_code != AttErrorResponse::ATTRIBUTE_NOT_FOUND) {
|
if (error.error_code != AttErrorResponse::ATTRIBUTE_NOT_FOUND) {
|
||||||
terminate(client);
|
terminate(client);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (error.request_opcode) {
|
switch (error.request_opcode) {
|
||||||
|
|
Loading…
Reference in New Issue