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 Brian Warner
parent e9e74c43e1
commit a5163c32cc

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"