_update_callback needs no await

This commit is contained in:
Lonami 2018-09-29 11:30:27 +02:00 committed by GitHub
parent 5add511dc3
commit 31e7bf03da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -571,7 +571,7 @@ class MTProtoSender:
__log__.debug('Handling update {}'
.format(message.obj.__class__.__name__))
if self._update_callback:
await self._update_callback(message.obj)
self._update_callback(message.obj)
async def _handle_pong(self, message):
"""