samples: net: echo_client: Fix compile issues from timeout overhaul
Use proper timeout value for poll() Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
bfa3e80ca0
commit
36b151c566
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ static void wait(void)
|
|||
/* Wait for event on any socket used. Once event occurs,
|
||||
* we'll check them all.
|
||||
*/
|
||||
if (poll(fds, nfds, K_FOREVER) < 0) {
|
||||
if (poll(fds, nfds, -1) < 0) {
|
||||
LOG_ERR("Error in poll:%d", errno);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue