__gracefully_kick

This commit is contained in:
Maxim Khomutov 2023-07-24 00:03:04 +03:00
parent e440cdf022
commit 9079750576
2 changed files with 2 additions and 3 deletions

View File

@ -116,7 +116,7 @@ class Core:
self.log.error("Error in check_alive.") self.log.error("Error in check_alive.")
self.log.exception(e) self.log.exception(e)
async def __gracefully_kick(self, _): async def __gracefully_kick(self):
for client in self.clients: for client in self.clients:
if not client: if not client:
continue continue

View File

@ -93,8 +93,7 @@ class UDPServer(asyncio.DatagramTransport):
) )
d.transport = self.transport d.transport = self.transport
if not self.run: self.log.debug(f"UDP server started on {self.transport.get_extra_info('sockname')}")
self.log.debug(f"UDP server started on {self.transport.get_extra_info('sockname')}")
self.run = True self.run = True
while not self.transport.is_closing(): while not self.transport.is_closing():