From 93eb89f426248b72d4bbeedab8e8a2c205cbe615 Mon Sep 17 00:00:00 2001 From: Arran Cudbard-Bell Date: Fri, 24 Sep 2021 14:34:48 -0500 Subject: [PATCH] Fix watchdog time check --- src/lib/server/main_loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/server/main_loop.c b/src/lib/server/main_loop.c index de083563ba..f7637db623 100644 --- a/src/lib/server/main_loop.c +++ b/src/lib/server/main_loop.c @@ -208,7 +208,7 @@ int main_loop_start(void) /* * Start placating the watchdog (if told to do so). */ - if (sd_watchdog_interval > 0) sd_watchdog_event(event_list, fr_time_wrap(0), NULL); + if (fr_time_delta_ispos(sd_watchdog_interval)) sd_watchdog_event(event_list, fr_time_wrap(0), NULL); #endif ret = fr_event_loop(event_list); -- 2.47.2