mirror of https://github.com/ARMmbed/mbed-os.git
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.pull/15311/head
parent
91b793c4fd
commit
63dc2fd550
|
|
@ -156,6 +156,7 @@ void CellularContext::do_connect_with_retry()
|
|||
rtos::ThisThread::sleep_for(_retry_timeout_array[_retry_count] * 1s);
|
||||
do_connect();
|
||||
if (_cb_data.error == NSAPI_ERROR_OK) {
|
||||
call_network_cb(NSAPI_STATUS_GLOBAL_UP);
|
||||
return;
|
||||
}
|
||||
_retry_count++;
|
||||
|
|
|
|||
Loading…
Reference in New Issue