aboutsummaryrefslogtreecommitdiffstats
path: root/netlib
diff options
context:
space:
mode:
Diffstat (limited to 'netlib')
-rw-r--r--netlib/tcp.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/netlib/tcp.py b/netlib/tcp.py
index 08ccba09..92a7e92f 100644
--- a/netlib/tcp.py
+++ b/netlib/tcp.py
@@ -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):