mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2024-10-01 03:35:38 -04:00
client: Catch a KeyboardInterrupt exception in the fetcher loop.
This commit is contained in:
parent
87c4958e15
commit
a339f7be1d
@ -340,7 +340,7 @@ class PanClient(AsyncClient):
|
||||
await self.index.commit_events()
|
||||
self.delete_fetcher_task(fetch_task)
|
||||
|
||||
except asyncio.CancelledError:
|
||||
except (asyncio.CancelledError, KeyboardInterrupt):
|
||||
return
|
||||
|
||||
async def sync_tasks(self, response):
|
||||
|
Loading…
Reference in New Issue
Block a user