From 184f851625d0526c94d55cc6c47184faf601895b Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 21 Jul 2019 02:22:46 +0200 Subject: [PATCH] Fix idle() and run() breaking after latest changes --- pyrogram/client/client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 08ea3b39..19ff1b5e 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -450,8 +450,6 @@ class Client(Methods, BaseClient): while Client.is_idling: time.sleep(1) - self.stop() - def run(self): """Start the Client and automatically idle the main script. @@ -464,6 +462,7 @@ class Client(Methods, BaseClient): """ self.start() self.idle() + self.stop() def add_handler(self, handler: Handler, group: int = 0): """Register an update handler.