Skip to content

Commit

Permalink
Break out of loop when a dog failed. (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
floitsch authored Feb 12, 2024
1 parent d7a9fa3 commit 3dccabf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/provider.toit
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ class WatchdogServiceProvider extends ServiceProvider
// This allows the system to clean up before rebooting.
mutex_.do: system-watchdog_.feed
system-watchdog_.reboot
// In case the 'reboot' calls returns, break out of the
// loop. No need to look at the dogs again.
break
else:
// Feed the system watchdog.
logger_.debug "feeding system watchdog"
Expand Down

0 comments on commit 3dccabf

Please sign in to comment.