diff --git a/pyrogram/session/session.py b/pyrogram/session/session.py index c1269d49..333947e4 100644 --- a/pyrogram/session/session.py +++ b/pyrogram/session/session.py @@ -186,6 +186,9 @@ class Session: for i in range(self.NET_WORKERS): self.recv_queue.put(None) + for i in self.results.values(): + i.event.set() + log.debug("Session stopped") def restart(self):