feat: preparation for data integrity test

This commit is contained in:
Swann Martinez
2019-07-19 14:29:57 +02:00
parent dac5662f77
commit 589dcd6979
3 changed files with 67 additions and 13 deletions

View File

@ -119,7 +119,7 @@ class ClientNetService(threading.Thread):
SYNCING : Ask for snapshots
ACTIVE : Do nothing
"""
items = dict(poller.poll(10))
items = dict(poller.poll(1))
if self.snapshot in items:
if self.state == STATE_SYNCING:
@ -129,7 +129,7 @@ class ClientNetService(threading.Thread):
self.state = STATE_ACTIVE
logger.debug('{} : snapshot done'.format(self._id))
datablock.store(self._store_reference)
# We receive updates from the server !
if self.subscriber in items: