mirror of https://github.com/ARMmbed/mbed-os.git
suggested change by Hugues Kamba
Co-authored-by: Hugues Kamba <41612201+hugueskamba@users.noreply.github.com>pull/13476/head
parent
f789de3399
commit
f8d90dd5b0
|
@ -60,7 +60,7 @@ extern "C" { // "pppos.h" is missing extern C
|
||||||
/* Timeout to wait for PPP connection to be terminated
|
/* Timeout to wait for PPP connection to be terminated
|
||||||
* (LCP Terminate-Request is answered with Terminate-Ack)
|
* (LCP Terminate-Request is answered with Terminate-Ack)
|
||||||
*/
|
*/
|
||||||
#define PPP_TERMINATION_TIMEOUT 30000
|
constexpr auto PPP_TERMINATION_TIMEOUT=30000ms;
|
||||||
|
|
||||||
// If both IPCP and IPCP6 are made, how long to wait for both to complete
|
// If both IPCP and IPCP6 are made, how long to wait for both to complete
|
||||||
#define PPP_IPCP_IPCP6_DELAY 5000
|
#define PPP_IPCP_IPCP6_DELAY 5000
|
||||||
|
@ -358,7 +358,7 @@ nsapi_error_t ppp_service::ppp_if_disconnect()
|
||||||
ret = ppp_close(ppp_service_pcb, 0);
|
ret = ppp_close(ppp_service_pcb, 0);
|
||||||
if (ret == ERR_OK) {
|
if (ret == ERR_OK) {
|
||||||
/* close call made, now let's catch the response in the status callback */
|
/* close call made, now let's catch the response in the status callback */
|
||||||
ppp_service_close_sem.try_acquire_for(std::chrono::milliseconds(PPP_TERMINATION_TIMEOUT));
|
ppp_service_close_sem.try_acquire_for(PPP_TERMINATION_TIMEOUT);
|
||||||
}
|
}
|
||||||
ppp_service_active = false;
|
ppp_service_active = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue