Fix CdnDecrypter incorrectly accessing clients' timeout (closes #265)

This commit is contained in:
Lonami Exo 2017-09-27 12:08:37 +02:00
parent 9b7733d6b9
commit 657e8a70c9

View File

@ -42,7 +42,7 @@ class CdnDecrypter:
session.port = dc.port
cdn_client = client_cls( # Avoid importing TelegramBareClient
session, client.api_id, client.api_hash,
timeout=client._timeout
timeout=client._sender.connection.get_timeout()
)
# This will make use of the new RSA keys for this specific CDN.
#