mirror of
https://github.com/kuitoi/kuitoi-Server.git
synced 2025-08-17 16:25:36 +00:00
Minor fix
This commit is contained in:
parent
22105b2030
commit
d21798aaf1
@ -54,8 +54,9 @@ class TCPServer:
|
|||||||
self.log.error(f"Auth error: {e}")
|
self.log.error(f"Auth error: {e}")
|
||||||
await client.kick('Invalid authentication data! Try to connect in 5 minutes.')
|
await client.kick('Invalid authentication data! Try to connect in 5 minutes.')
|
||||||
|
|
||||||
# TODO: Password party
|
for _client in self.Core.clients:
|
||||||
# await client.tcp_send(b"S") # Ask client key (How?)
|
if _client.nick == client.nick and _client.guest == client.guest:
|
||||||
|
await client.kick('Stale Client (replaced by new client)')
|
||||||
|
|
||||||
ev.call_event("on_auth", client)
|
ev.call_event("on_auth", client)
|
||||||
|
|
||||||
@ -112,7 +113,7 @@ class TCPServer:
|
|||||||
self.log.debug("Starting TCP server.")
|
self.log.debug("Starting TCP server.")
|
||||||
try:
|
try:
|
||||||
server = await asyncio.start_server(self.handle_client, self.host, self.port,
|
server = await asyncio.start_server(self.handle_client, self.host, self.port,
|
||||||
backlog=config.Game["players"] + 1)
|
backlog=int(config.Game["players"] * 1.3))
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
self.log.error(f"Error: {e}")
|
self.log.error(f"Error: {e}")
|
||||||
self.Core.run = False
|
self.Core.run = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user