mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-03 13:14:31 +03:00
Fix CdnDecrypter incorrectly accessing clients' timeout (closes #265)
This commit is contained in:
parent
9b7733d6b9
commit
657e8a70c9
|
@ -42,7 +42,7 @@ class CdnDecrypter:
|
||||||
session.port = dc.port
|
session.port = dc.port
|
||||||
cdn_client = client_cls( # Avoid importing TelegramBareClient
|
cdn_client = client_cls( # Avoid importing TelegramBareClient
|
||||||
session, client.api_id, client.api_hash,
|
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.
|
# This will make use of the new RSA keys for this specific CDN.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue
Block a user