ActivityWatch / aw-watcher-window-wayland

Window and AFK watcher for some Wayland compositors
Mozilla Public License 2.0
60 stars 14 forks source link

Don't crash when a single heartbeat fails #7

Open johan-bjareholt opened 3 years ago

johan-bjareholt commented 3 years ago

Currently the program crashes if a single heartbeat fails. It should instead build up a queue of events while it can't connect to aw-server and then retry to send the queue again after a while (like aw-client-python does). This issue can occur today if something as simple as putting heavy load on aw-server occurs (such as maybe looking at a monthly summary)

johan-bjareholt commented 3 years ago

Did a quick workaround to simply not crash, but the queuing of events is still not fixed.

30344a387519e0283a2caeac2506dc2deeee2f56