client: Clear the synced event when we start the loop.

This commit is contained in:
Damir Jelić 2019-05-02 13:28:41 +02:00
parent ba28580aca
commit 46aa303654

View File

@ -152,6 +152,7 @@ class PanClient(AsyncClient):
async def loop(self):
self.loop_running = True
self.loop_stopped.clear()
self.synced.clear()
logger.info(f"Starting sync loop for {self.user_id}")