X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnet.c;h=dd86cf27de1ddae82cb5ab81e51a0f10f3efc92e;hb=d2949381713c35210a43391524494c639f6f1d48;hp=9669bc971972488e80ba69391b3841da952f13dc;hpb=c5373d9fc0c8e3dfb6529b35bf44efe58410e0c7;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.