Skip to content

Commit 4b8bf26

Browse files
author
Bilal Al
committed
polish
1 parent 719f7c7 commit 4b8bf26

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

splitio/push/manager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ async def stop(self, blocking=False):
349349

350350
if self._token_task:
351351
self._token_task.cancel()
352+
self._token_task = None
352353

353354
if blocking:
354355
await self._stop_current_conn()

splitio/sync/synchronizer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ async def sync_all(self, max_retry_attempts=_SYNC_ALL_NO_RETRIES):
614614
break
615615
how_long = self._backoff.get()
616616
if not self._shutdown:
617-
time.sleep(how_long)
617+
await asyncio.sleep(how_long)
618618

619619
_LOGGER.error("Could not correctly synchronize feature flags and segments after %d attempts.", retry_attempts)
620620

@@ -838,7 +838,6 @@ async def stop_periodic_data_recording(self, blocking):
838838
asyncio.get_running_loop().create_task(self._stop_periodic_data_recording)
839839

840840

841-
842841
class LocalhostSynchronizerBase(BaseSynchronizer):
843842
"""LocalhostSynchronizer base."""
844843

0 commit comments

Comments
 (0)