diff --git a/Assets/Mirror/Runtime/NetworkManager.cs b/Assets/Mirror/Runtime/NetworkManager.cs index 4b2ce00bb..3aed94ba2 100644 --- a/Assets/Mirror/Runtime/NetworkManager.cs +++ b/Assets/Mirror/Runtime/NetworkManager.cs @@ -1157,11 +1157,11 @@ void OnClientDisconnectInternal() OnClientDisconnect(NetworkClient.connection); } - void OnClientNotReadyMessageInternal(NetworkConnection conn, NotReadyMessage msg) + void OnClientNotReadyMessageInternal(NotReadyMessage msg) { //Debug.Log("NetworkManager.OnClientNotReadyMessageInternal"); NetworkClient.ready = false; - OnClientNotReady(conn); + OnClientNotReady(NetworkClient.connection); // NOTE: clientReadyConnection is not set here! don't want OnClientConnect to be invoked again after scene changes. }