mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-01-30 20:34:40 +01:00
fix
This commit is contained in:
parent
4b3fd5f833
commit
a0ca9dc2e4
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,6 @@ import contextlib
|
|||
import functools
|
||||
import json
|
||||
import os
|
||||
import platform
|
||||
import random
|
||||
import ssl
|
||||
import threading
|
||||
|
@ -241,9 +240,11 @@ def proxy_server(proxy_server_class, request_handler, bind_ip=None, **proxy_serv
|
|||
yield f'{bind_address}:{server_port}'
|
||||
finally:
|
||||
server.shutdown()
|
||||
server.server_close()
|
||||
server_thread.join()
|
||||
|
||||
|
||||
|
||||
class HTTPProxyTestContext(abc.ABC):
|
||||
REQUEST_HANDLER_CLASS = None
|
||||
REQUEST_PROTO = None
|
||||
|
|
Loading…
Add table
Reference in a new issue