X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnet.c;h=dd86cf27de1ddae82cb5ab81e51a0f10f3efc92e;hb=d3849fcb278d1df005c507f7e18a8397574f7f47;hp=9669bc971972488e80ba69391b3841da952f13dc;hpb=373b0c12d9d0e8a3b449fd18be704e28dd6403e1;p=tinc diff --git a/src/net.c b/src/net.c index 9669bc97..dd86cf27 100644 --- a/src/net.c +++ b/src/net.c @@ -35,6 +35,7 @@ #include "protocol.h" #include "subnet.h" #include "utils.h" +#include "watchdog.h" int contradicting_add_edge = 0; int contradicting_del_edge = 0; @@ -195,6 +196,9 @@ static void timeout_handler(void *data) { by default */ if(sleep_time > 2 * udp_discovery_timeout) { +#ifdef HAVE_WATCHDOG + watchdog_ping(); +#endif logger(DEBUG_ALWAYS, LOG_ERR, "Awaking from dead after %ld seconds of sleep", sleep_time); /* Do not send any packets to tinc after we wake up.