We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1b63aad + 2b26a62 commit 1647282Copy full SHA for 1647282
features/nanostack/mbed-mesh-api/source/MeshInterfaceNanostack.cpp
@@ -120,8 +120,9 @@ nsapi_error_t MeshInterfaceNanostack::initialize(NanostackRfPhy *phy)
120
void Nanostack::Interface::network_handler(mesh_connection_status_t status)
121
{
122
if (_blocking) {
123
- if (status == MESH_CONNECTED || status == MESH_CONNECTED_LOCAL ||
124
- status == MESH_CONNECTED_GLOBAL) {
+ if (_connect_status == NSAPI_STATUS_CONNECTING
+ && (status == MESH_CONNECTED || status == MESH_CONNECTED_LOCAL
125
+ || status == MESH_CONNECTED_GLOBAL)) {
126
connect_semaphore.release();
127
} else if (status == MESH_DISCONNECTED) {
128
disconnect_semaphore.release();
0 commit comments