Only perform full scan if pending set is empty

This commit is contained in:
David Stainton 2015-12-18 01:34:05 +02:00 committed by Daira Hopwood
parent 2be3bc88b7
commit b8fb8848a2
1 changed files with 2 additions and 1 deletions

View File

@ -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"