mirror of
https://github.com/kuitoi/kuitoi-Server.git
synced 2026-04-24 00:56:36 +00:00
Move sync_resources logic before insert to clients.
This commit is contained in:
@@ -72,6 +72,8 @@ class TCPServer:
|
||||
return False, None
|
||||
else:
|
||||
self.log.info("Identification success")
|
||||
await client.tcp_send(b"P" + bytes(f"{client.cid}", "utf-8"))
|
||||
await client.sync_resources()
|
||||
await self.Core.insert_client(client)
|
||||
|
||||
return True, client
|
||||
|
||||
Reference in New Issue
Block a user