hannesm / jackline

minimalistic secure XMPP client in OCaml
BSD 2-Clause "Simplified" License
251 stars 20 forks source link

persistency should be more eager #61

Closed hannesm closed 9 years ago

hannesm commented 9 years ago

atm, only on /quit anything is written (apart from configuration) -- but if computer crashes or jackline gets killed, the information is lost, specifically:

this should be either written when a modification took place, or every X minutes/seconds. prefered the former (with some sort of lock, similar to the notification.state, to avoid races)

hannesm commented 9 years ago

this is now in #62, I test it locally a bit but am a bit hesitant to merge before rethinking/rereading the PR... @sg2342 @cfcs if you've some spare time, would be great if you read through and/or test (likely I haven't considered all the possible corner cases)

hannesm commented 9 years ago

that's now fixed and merged