diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2022-02-24 16:47:58 +0300 |
---|---|---|
committer | Hannah von Reth <hannah.vonreth@owncloud.com> | 2022-02-24 16:47:58 +0300 |
commit | adafadaf98a18e420e6750e4180a085ae2b6afcf (patch) | |
tree | d31e82fd5714dd60b97b60211c4631f9167105a0 /src/gui/folderman.cpp | |
parent | 97798a98cc843be8754c8a45f10847402a8d9bb1 (diff) | |
parent | 1ef86e0d05ffbaadf0adc8785dc3fe37b7808da2 (diff) |
Merge remote-tracking branch 'origin/2.10'
Diffstat (limited to 'src/gui/folderman.cpp')
-rw-r--r-- | src/gui/folderman.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/folderman.cpp b/src/gui/folderman.cpp index 2ca61d99d..d1af68ba8 100644 --- a/src/gui/folderman.cpp +++ b/src/gui/folderman.cpp @@ -149,9 +149,11 @@ FolderMan::FolderMan(QObject *parent) _socketApi.reset(new SocketApi); // Set the remote poll interval fixed to 10 seconds. - // That does not mean that it polls every 10 seconds, but it checks every 10 secs - // if one of the folders is due to sync. - _etagPollTimer.setInterval(1000); + // That does not mean that it polls every 10 seconds, but it checks every 10 seconds + // if one of the folders is due to sync. This means that if the server advertises a + // pollinterval that is not a multiple of 10 seconds, then that pollinterval will be + // rounded up to the next 10 seconds in practice. 10-second granularity is acceptable. + _etagPollTimer.setInterval(10s); QObject::connect(&_etagPollTimer, &QTimer::timeout, this, &FolderMan::slotEtagPollTimerTimeout); _etagPollTimer.start(); |