mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #4592 from KariHaapalehto/connect_timeout
[ONME-3089] - Adjust lowpan ND interface connect timeoutpull/4754/head
commit
b685fe89b1
|
|
@ -39,7 +39,8 @@ int LoWPANNDInterface::connect()
|
|||
// Release mutex before blocking
|
||||
nanostack_unlock();
|
||||
|
||||
int32_t count = connect_semaphore.wait(30000);
|
||||
// wait connection for ever
|
||||
int32_t count = connect_semaphore.wait(osWaitForever);
|
||||
|
||||
if (count <= 0) {
|
||||
return NSAPI_ERROR_DHCP_FAILURE; // sort of...
|
||||
|
|
@ -124,4 +125,4 @@ bool LoWPANNDInterface::getRouterIpAddress(char *address, int8_t len)
|
|||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue