From 9e81761f8af2cf1de03705e2927abd438009cc7f Mon Sep 17 00:00:00 2001 From: David Stainton Date: Fri, 18 Dec 2015 01:34:05 +0200 Subject: [PATCH] Only perform full scan if pending set is empty --- src/allmydata/frontends/magic_folder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py index 87655951..abb0a1ff 100644 --- a/src/allmydata/frontends/magic_folder.py +++ b/src/allmydata/frontends/magic_folder.py @@ -258,7 +258,8 @@ class Uploader(QueueMixin): def _periodic_full_scan(self): self.periodic_callid = self._clock.callLater(self._periodic_full_scan_duration, self._periodic_full_scan) - self._full_scan() + if len(self._pending) == 0: + self._full_scan() def _full_scan(self): print "FULL SCAN" -- 2.45.2