From 38442bf3c1acf418dc2030c4996cd95aae0bd89d Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Fri, 7 Sep 2018 00:41:01 +0200 Subject: [PATCH] Add missing await --- pyrogram/session/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/session/session.py b/pyrogram/session/session.py index 34e892e0..fb3b5594 100644 --- a/pyrogram/session/session.py +++ b/pyrogram/session/session.py @@ -147,7 +147,7 @@ class Session: log.info("System: {} ({})".format(self.client.system_version, self.client.lang_code.upper())) except AuthKeyDuplicated as e: - self.stop() + await self.stop() raise e except (OSError, TimeoutError, Error): await self.stop()