Fix CdnDecrypter not being async

This commit is contained in:
Lonami Exo
2017-10-07 09:50:23 +02:00
parent 77c99db066
commit ef43e2e336
2 changed files with 7 additions and 7 deletions

View File

@@ -615,7 +615,7 @@ class TelegramBareClient:
try:
if cdn_decrypter:
result = cdn_decrypter.get_file()
result = await cdn_decrypter.get_file()
else:
result = await client(GetFileRequest(
input_location, offset, part_size
@@ -623,7 +623,7 @@ class TelegramBareClient:
if isinstance(result, FileCdnRedirect):
cdn_decrypter, result = \
CdnDecrypter.prepare_decrypter(
await CdnDecrypter.prepare_decrypter(
client,
await self._get_cdn_client(result),
result