From a9ccbaca19e61669fa4f6b33d8fa65f505132252 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 13 Jun 2018 20:03:54 +0200 Subject: [PATCH] Fix ping request not awaiting --- 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 173e8846..1cd27c5e 100644 --- a/pyrogram/session/session.py +++ b/pyrogram/session/session.py @@ -324,7 +324,7 @@ class Session: break try: - self._send(functions.PingDelayDisconnect( + await self._send(functions.PingDelayDisconnect( 0, self.WAIT_TIMEOUT + 10 ), False) except (OSError, TimeoutError, Error):