mirror of
https://github.com/kuitoi/kuitoi-Server.git
synced 2026-10-27 06:30:22 +00:00
minor
This commit is contained in:
1 parent
8ed5671995
commit
72035c226b
1 file changed
+2
@@ -193,6 +193,8 @@ class TCPServer:
|
|||||||
def stop(self):
|
def stop(self):
|
||||||
self.log.debug("Stopping TCP server")
|
self.log.debug("Stopping TCP server")
|
||||||
try:
|
try:
|
||||||
|
if not self.server:
|
||||||
|
return
|
||||||
self.server.close()
|
self.server.close()
|
||||||
for conn in self._connections:
|
for conn in self._connections:
|
||||||
self.log.debug(f"Closing {conn}")
|
self.log.debug(f"Closing {conn}")
|
||||||
|
|||||||
Reference in new issue
Block a user