Put uploads into a separate thread #1415

Merged
PeterSurda merged 3 commits from writebuf_upload_fix into v0.6 2018-12-21 06:33:57 +01:00
Showing only changes of commit 1cdbb90f22 - Show all commits

View File

@ -282,8 +282,8 @@ class BMProto(AdvancedDispatcher, ObjectTracker):
now = time.time()
if now < self.skipUntil:
return True
for i in map(str, items):
self.pendingUpload[i] = now
for i in items:
self.pendingUpload[str(i)] = now
return True
def _command_inv(self, dandelion=False):