mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-03 13:14:31 +03:00
Attempt at fixing socket is None on .connect()
This commit is contained in:
parent
6d60e83adc
commit
a992f42781
|
@ -43,7 +43,7 @@ class TcpClient:
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
if not self._socket:
|
while not self._socket:
|
||||||
self._recreate_socket(mode)
|
self._recreate_socket(mode)
|
||||||
|
|
||||||
self._socket.connect(address)
|
self._socket.connect(address)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user