mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-30 14:58:38 +00:00
Merge pull request #2335 from cortesi/shutdown
net.tcp: server should be in shut-down state before start
This commit is contained in:
commit
dd3067ab6e
@ -847,6 +847,7 @@ class TCPServer:
|
||||
def __init__(self, address):
|
||||
self.address = address
|
||||
self.__is_shut_down = threading.Event()
|
||||
self.__is_shut_down.set()
|
||||
self.__shutdown_request = False
|
||||
|
||||
if self.address == 'localhost':
|
||||
|
Loading…
Reference in New Issue
Block a user