Checklist
Description
showt he handler has been closed when running
Steps to reproduce
[10] Retrying "channels.GetChannels" due to: unable to perform operation on <TCPTransport closed=True reading=False 0x5b8fdc0>; the handler is closed
Task exception was never retrieved
future: <Task finished name='Task-2018290' coro=<Client.handle_updates() done, defined at /usr/local/lib/python3.8/dist-packages/pyrogram/client.py:582> exception=OSError(RuntimeError('unable to perform operation on <TCPTransport closed=True reading=False 0x5b8fdc0>; the handler is closed'))>
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/pyrogram/client.py", line 627, in handle_updates
channel=await self.resolve_peer(utils.get_channel_id(channel_id)),
File "/usr/local/lib/python3.8/dist-packages/pyrogram/methods/advanced/resolve_peer.py", line 111, in resolve_peer
await self.invoke(
File "/usr/local/lib/python3.8/dist-packages/pyrogram/methods/advanced/invoke.py", line 94, in invoke
r = await session.invoke(
File "/usr/local/lib/python3.8/dist-packages/pyrogram/session/session.py", line 422, in invoke
return await self.invoke(query, retries - 1, timeout)
File "/usr/local/lib/python3.8/dist-packages/pyrogram/session/session.py", line 422, in invoke
return await self.invoke(query, retries - 1, timeout)
File "/usr/local/lib/python3.8/dist-packages/pyrogram/session/session.py", line 422, in invoke
return await self.invoke(query, retries - 1, timeout)
[Previous line repeated 7 more times]
File "/usr/local/lib/python3.8/dist-packages/pyrogram/session/session.py", line 412, in invoke
raise e from None
File "/usr/local/lib/python3.8/dist-packages/pyrogram/session/session.py", line 399, in invoke
return await self.send(query, timeout=timeout)
File "/usr/local/lib/python3.8/dist-packages/pyrogram/session/session.py", line 350, in send
raise e
File "/usr/local/lib/python3.8/dist-packages/pyrogram/session/session.py", line 347, in send
await self.connection.send(payload)
File "/usr/local/lib/python3.8/dist-packages/pyrogram/connection/connection.py", line 69, in send
await self.protocol.send(data)
File "/usr/local/lib/python3.8/dist-packages/pyrogram/connection/transport/tcp/tcp_abridged.py", line 38, in send
await super().send(
File "/usr/local/lib/python3.8/dist-packages/pyrogram/connection/transport/tcp/tcp.py", line 104, in send
raise OSError(e)
OSError: unable to perform operation on <TCPTransport closed=True reading=False 0x5b8fdc0>; the handler is closed
Code example
No response
Logs
No response