Move sync_resources logic before insert to clients.

This commit is contained in:
2023-07-13 18:08:47 +03:00
parent dd2c461581
commit 6afe62b68e
2 changed files with 3 additions and 7 deletions

View File

@@ -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