From c7d362990f1de45fcc950ae5b4d13bfd03ef3108 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sat, 24 Dec 2022 17:53:24 +0100 Subject: [PATCH] Add back a reference to the loop --- pyrogram/connection/transport/tcp/tcp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyrogram/connection/transport/tcp/tcp.py b/pyrogram/connection/transport/tcp/tcp.py index 13ddb8e2..67b5385d 100644 --- a/pyrogram/connection/transport/tcp/tcp.py +++ b/pyrogram/connection/transport/tcp/tcp.py @@ -45,6 +45,8 @@ class TCP: self.reader = None # type: asyncio.StreamReader self.writer = None # type: asyncio.StreamWriter + self.loop = asyncio.get_event_loop() + if proxy: hostname = proxy.get("hostname")