Fix ping request not awaiting

This commit is contained in:
Dan 2018-06-13 20:03:54 +02:00
parent f76c654548
commit a9ccbaca19

View File

@ -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):