webxdc / timetracking-webxdc

WIP xdc app for time tracking
GNU General Public License v3.0
5 stars 0 forks source link

Out of order delivery of webxdc status updates is not handled #25

Closed Simon-Laux closed 11 months ago

Simon-Laux commented 11 months ago

Which means the devices can get out of sync.

In my case it was about ending entries that did not exist yet.

I think an easy fix would be to cache all updates that could not be applied because of this and then try to parse them again after processing all initial updates and after each update batch after that (when update.serial === update.max_serial)