mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-03 11:40:11 +03:00
Add missing await
This commit is contained in:
parent
3171efafcb
commit
b09d91b9ef
|
@ -141,7 +141,7 @@ class MtProtoSender:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with await self._recv_lock:
|
with await self._recv_lock:
|
||||||
body = self.connection.recv()
|
body = await self.connection.recv()
|
||||||
except (BufferError, InvalidChecksumError):
|
except (BufferError, InvalidChecksumError):
|
||||||
# TODO BufferError, we should spot the cause...
|
# TODO BufferError, we should spot the cause...
|
||||||
# "No more bytes left"; something wrong happened, clear
|
# "No more bytes left"; something wrong happened, clear
|
||||||
|
|
Loading…
Reference in New Issue
Block a user