[sans-io] clientplayback: don't catch cancellederror

This commit is contained in:
Maximilian Hils 2020-11-21 17:18:52 +01:00
parent b5f59a1297
commit 5bf07b2176

View File

@ -106,17 +106,14 @@ class ClientPlayback:
self.playback_task.cancel()
async def playback(self):
try:
while True:
self.inflight = await self.queue.get()
try:
h = ReplayHandler(self.inflight, self.options)
await h.replay()
except Exception:
ctx.log(f"Client replay has crashed!\n{traceback.format_exc()}", "error")
self.inflight = None
except asyncio.CancelledError:
return
while True:
self.inflight = await self.queue.get()
try:
h = ReplayHandler(self.inflight, self.options)
await h.replay()
except Exception:
ctx.log(f"Client replay has crashed!\n{traceback.format_exc()}", "error")
self.inflight = None
def check(self, f: flow.Flow) -> typing.Optional[str]:
if f.live: