mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-31 07:18:58 +00:00
Close socket on shutdown.
This commit is contained in:
parent
ce1ef55456
commit
084be7684d
@ -158,6 +158,7 @@ class TCPServer:
|
||||
def shutdown(self):
|
||||
self.__shutdown_request = True
|
||||
self.__is_shut_down.wait()
|
||||
self.socket.close()
|
||||
self.handle_shutdown()
|
||||
|
||||
def handle_error(self, request, client_address, fp=sys.stderr):
|
||||
|
Loading…
Reference in New Issue
Block a user