Skip to content

Commit 63dc2fd

Browse files
authored
Fix missing GLOBAL_UP callback on successful connect
Fix an issue where CellularContext::do_connect_with_retry() does not call NSAPI_STATUS_GLOBAL_UP callback on successful connect after failed try in blocking mode.
1 parent 91b793c commit 63dc2fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

connectivity/cellular/source/framework/device/CellularContext.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ void CellularContext::do_connect_with_retry()
156156
rtos::ThisThread::sleep_for(_retry_timeout_array[_retry_count] * 1s);
157157
do_connect();
158158
if (_cb_data.error == NSAPI_ERROR_OK) {
159+
call_network_cb(NSAPI_STATUS_GLOBAL_UP);
159160
return;
160161
}
161162
_retry_count++;

0 commit comments

Comments
 (0)