From: Arran Cudbard-Bell Date: Fri, 24 Sep 2021 19:34:48 +0000 (-0500) Subject: Fix watchdog time check X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93eb89f426248b72d4bbeedab8e8a2c205cbe615;p=thirdparty%2Ffreeradius-server.git Fix watchdog time check --- 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);