diff --git a/fc2_live_dl/FC2LiveDL.py b/fc2_live_dl/FC2LiveDL.py index 64097f3..f50556d 100644 --- a/fc2_live_dl/FC2LiveDL.py +++ b/fc2_live_dl/FC2LiveDL.py @@ -80,6 +80,10 @@ async def __aenter__(self): async def __aexit__(self, *err): self._logger.trace("exit", err) await self._session.close() + # Sleep for 250ms to allow SSL connections to close. + # See: https://github.com/aio-libs/aiohttp/issues/1925 + # See: https://github.com/aio-libs/aiohttp/issues/4324 + await asyncio.sleep(0.250) self._session = None async def download(self, channel_id):