summaryrefslogtreecommitdiffstats
path: root/src/libnetdata/socket/socket.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-09 08:26:46 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-09 08:26:46 +0000
commitd0b6d783aeb42b4972efba9f06e3a74e3a68295e (patch)
tree0086fdd24053305007874b4806f252ecd6308379 /src/libnetdata/socket/socket.c
parentAdding upstream version 1.47.2. (diff)
downloadnetdata-d0b6d783aeb42b4972efba9f06e3a74e3a68295e.tar.xz
netdata-d0b6d783aeb42b4972efba9f06e3a74e3a68295e.zip
Adding upstream version 1.47.5.upstream/1.47.5
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/libnetdata/socket/socket.c')
-rw-r--r--src/libnetdata/socket/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libnetdata/socket/socket.c b/src/libnetdata/socket/socket.c
index 85f67a2b..f907fefe 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()) {