mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 21:10:29 +00:00
Create a Connection only once and avoid no-op if was "connected"
This commit is contained in:
@@ -2,6 +2,8 @@ import os
|
||||
import time
|
||||
from hashlib import sha1
|
||||
|
||||
import errno
|
||||
|
||||
from .. import helpers as utils
|
||||
from ..crypto import AES, AuthKey, Factorization
|
||||
from ..crypto import rsa
|
||||
@@ -30,7 +32,6 @@ def _do_authentication(connection):
|
||||
time offset.
|
||||
"""
|
||||
sender = MtProtoPlainSender(connection)
|
||||
sender.connect()
|
||||
|
||||
# Step 1 sending: PQ Request
|
||||
nonce = os.urandom(16)
|
||||
|
Reference in New Issue
Block a user