Longer waiting time for resource loading

This commit is contained in:
sardelka9515
2022-10-15 18:18:36 +08:00
parent 4e6bab1b53
commit 806f1d194a

View File

@ -260,7 +260,7 @@ namespace RageCoop.Server.Scripting
Logger?.Info($"Resources sent to:{client.Username}"); Logger?.Info($"Resources sent to:{client.Username}");
} }
if (Server.GetResponse<Packets.FileTransferResponse>(client, new Packets.AllResourcesSent())?.Response == FileResponse.Loaded) if (Server.GetResponse<Packets.FileTransferResponse>(client, new Packets.AllResourcesSent(), ConnectionChannel.RequestResponse, 30000)?.Response == FileResponse.Loaded)
{ {
client.IsReady = true; client.IsReady = true;
Server.API.Events.InvokePlayerReady(client); Server.API.Events.InvokePlayerReady(client);