Fix host watchdog timer taking double the time to expire
The g_timeout_add() glib interface does not spawn immediately after it's called
but instead it runs for the first time after the specified interval.
Therefore need to set the watchdog property to 0 instead of 1 when the watchdog starts, and let
subsequent watchdog refresh calls set it to 1, otherwise the watchdog timer expires in double the time that was specified: it waits the interval time and sees it's 1 then waits a 2nd round to see it's 0.
1 file changed