Avoid missing sync intervals

Authored by Christian Mollekopf <chrigi_1@fastmail.fm> on Jun 27 2016, 11:32 AM.


Avoid missing sync intervals

We tried to guarantee that we never sync more frequently than the
minimum sync interval. It can happen though that the timer fires a
little bit early, resulting in a complete sync interval being missed.

We avoid this problem by only not syncing again if we did sync within
(interval - 2min).

Phabricator: git.kolab.org/T1295

Reviewers: knauss

Differential Revision: https://git.kolab.org/D189