Object exchange tweaks

This commit is contained in:
TheKysek 2017-06-19 08:54:41 +02:00
parent 15620435ff
commit 55e263a394
No known key found for this signature in database
GPG Key ID: 50D9AF00D0B1C497

View File

@ -319,8 +319,8 @@ class Connection(threading.Thread):
def _send_objects(self): def _send_objects(self):
if self.vectors_to_send: if self.vectors_to_send:
if len(self.vectors_to_send) > 32: if len(self.vectors_to_send) > 16:
to_send = random.sample(self.vectors_to_send, 32) to_send = random.sample(self.vectors_to_send, 16)
self.vectors_to_send.difference_update(to_send) self.vectors_to_send.difference_update(to_send)
else: else:
to_send = self.vectors_to_send.copy() to_send = self.vectors_to_send.copy()