diff options
Diffstat (limited to 'src/libnetdata/socket')
-rw-r--r-- | src/libnetdata/socket/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libnetdata/socket/socket.c b/src/libnetdata/socket/socket.c index 85f67a2ba..f907fefeb 100644 --- a/src/libnetdata/socket/socket.c +++ b/src/libnetdata/socket/socket.c @@ -1196,7 +1196,7 @@ inline int wait_on_socket_or_cancel_with_timeout( .revents = 0, }; - bool forever = (timeout_ms == 0); + bool forever = (timeout_ms <= 0); while (timeout_ms > 0 || forever) { if(nd_thread_signaled_to_cancel()) { |