mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
fix: #2623 NetworkServer.SetClientReady returns if already ready. fixes clients spamming ReadyMessage to force observer rebuilds etc. [imer]
This commit is contained in:
parent
c4e9071700
commit
564b6f4237
@ -1034,6 +1034,11 @@ public static void SetClientReady(NetworkConnectionToClient conn)
|
||||
{
|
||||
// Debug.Log($"SetClientReadyInternal for conn:{conn}");
|
||||
|
||||
// only if not already ready yet.
|
||||
// prevents clients spamming ReadyMessage to force observer rebuilds.
|
||||
// fixes: https://github.com/MirrorNetworking/Mirror/issues/2623
|
||||
if (conn.isReady) return;
|
||||
|
||||
// set ready
|
||||
conn.isReady = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user