mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-12 15:02:11 +00:00
402d6c0b43
This is a long-overdue change in general. It's now particularly necessary because we want to start and stop the watchdog, potentially multiple times during a session. Encapsulating this into a class that we can destroy/instantiate several times means that we don't end up with inconsistent state. As a nice bonus, this centralizes the whole setup and makes it easier to comprehend. I actually had this nicely split up into several patches, but I accidentally squashed them while rebasing. :-(