Private GIT

Skip to content
Snippets Groups Projects
Select Git revision
0 results

connect.py

  • Sean Rees's avatar
    21156631
    Fix reconnect bug and add watchdog timer · 21156631
    Sean Rees authored
    We called disconnect() twice on the underlying libdyson object, which
    resulted in an unhandled exception and the process hanging. Unfortunately
    addressing this does not reliably result in reconnects; so also add a default
    5 minute watchdog timer. If the timer expires, the process aborts so
    systemd can restart it.
    21156631
    History
    Fix reconnect bug and add watchdog timer
    Sean Rees authored
    We called disconnect() twice on the underlying libdyson object, which
    resulted in an unhandled exception and the process hanging. Unfortunately
    addressing this does not reliably result in reconnects; so also add a default
    5 minute watchdog timer. If the timer expires, the process aborts so
    systemd can restart it.