This commit is contained in:
2024-07-31 12:14:58 +03:00
parent 8ed5671995
commit 72035c226b

View File

@@ -193,6 +193,8 @@ class TCPServer:
def stop(self):
self.log.debug("Stopping TCP server")
try:
if not self.server:
return
self.server.close()
for conn in self._connections:
self.log.debug(f"Closing {conn}")