Add missing await

This commit is contained in:
Lonami Exo 2018-05-09 09:46:58 +02:00
parent 3171efafcb
commit b09d91b9ef

View File

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