Merge pull request #4592 from KariHaapalehto/connect_timeout

[ONME-3089] - Adjust lowpan ND interface connect timeout
pull/4754/head
Martin Kojtal 2017-07-13 16:50:19 +02:00 committed by GitHub
commit b685fe89b1
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}
}