diff options
-rw-r--r-- | mitmproxy/net/tcp.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mitmproxy/net/tcp.py b/mitmproxy/net/tcp.py index 372329d9..5ed4aa06 100644 --- a/mitmproxy/net/tcp.py +++ b/mitmproxy/net/tcp.py @@ -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': |