do not check every 5 seconds files with infinite timeout (= 0)
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Thu, 14 Sep 2023 16:27:18 +0000 (18:27 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Thu, 14 Sep 2023 21:17:55 +0000 (23:17 +0200)
commitd299e579e6bb9dce3302d673010bf58a7131812c
treed1af55cd78560e6b6a33e0e950cf47385d347953
parentb8024517a6d9d73d9b6c2f2e8b3cb66450a45a01
do not check every 5 seconds files with infinite timeout (= 0)

we want to schedule a new sync attempt if a file is likely to have been
unlocked due to timeout expiring on server

but if the timeout is null (equal to 0), there will be no timeout on
server and no automated unlocking, so do not schedule a sync every 5
seconds to check for it

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/libsync/discovery.cpp