mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-23 23:02:25 +00:00
Only perform full scan if pending set is empty
This commit is contained in:
parent
e9e74c43e1
commit
a5163c32cc
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user