mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Handle loop is closed
This commit is contained in:
parent
895f4f8dce
commit
a165d31f2f
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ class AiohttpSession(BaseSession):
|
|||
if self._should_reset_connector:
|
||||
await self.close()
|
||||
|
||||
if self._session is None or self._session.closed:
|
||||
if self._session is None or self._session.closed or self._session.loop.is_closed():
|
||||
self._session = ClientSession(
|
||||
connector=self._connector_type(**self._connector_init),
|
||||
headers={
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue