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:
Jukka Rissanen 2020-04-03 16:41:34 +03:00
commit 36b151c566

View file

@ -121,7 +121,7 @@ static void wait(void)
/* Wait for event on any socket used. Once event occurs, /* Wait for event on any socket used. Once event occurs,
* we'll check them all. * 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); LOG_ERR("Error in poll:%d", errno);
} }
} }