mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-02-13 20:48:33 +01:00
Try this
This commit is contained in:
parent
72bb0969bf
commit
2c7ddb6234
1 changed files with 4 additions and 1 deletions
|
@ -341,7 +341,10 @@ def create_http_connect_connection(
|
|||
raise ProxyError('Unable to connect to proxy', cause=e) from e
|
||||
|
||||
if response.status == 200:
|
||||
return conn.sock
|
||||
sock = conn.sock
|
||||
conn.sock = None
|
||||
response.fp = None
|
||||
return sock
|
||||
else:
|
||||
conn.close()
|
||||
response.close()
|
||||
|
|
Loading…
Add table
Reference in a new issue