diff --git a/samples/net/sockets/echo_client/src/echo-client.c b/samples/net/sockets/echo_client/src/echo-client.c index da09fa3ba63..c56410ef6b2 100644 --- a/samples/net/sockets/echo_client/src/echo-client.c +++ b/samples/net/sockets/echo_client/src/echo-client.c @@ -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); } }