Fix findhash initial delay

This commit is contained in:
shortcutme 2017-10-03 15:53:00 +02:00
parent 43bd8a2d6c
commit c0b8e802ec
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -247,7 +247,7 @@ class WorkerManager(object):
# Wait for more file requests # Wait for more file requests
if len(self.tasks) < 20 or high_priority: if len(self.tasks) < 20 or high_priority:
time.sleep(0.01) time.sleep(0.01)
if len(self.tasks) > 90: elif len(self.tasks) > 90:
time.sleep(5) time.sleep(5)
else: else:
time.sleep(0.5) time.sleep(0.5)