com.unity.netcode.gameobjects icon indicating copy to clipboard operation
com.unity.netcode.gameobjects copied to clipboard

Spammed With Client Disconnect

Open CosmicStud opened this issue 3 years ago • 1 comments

Describe the bug Spamming warning log printed in console after client disconnects. With the attempt to get the current observers of the network object, the same client id that disconnected is present. Even though its handled in the network manager script with the OnClientDisconnectFromServer method to remove the id from the observers. So now all of the objects. are spamming

Attempt to send to not connected connection {1}

Screenshots

Environment (please complete the following information): MLAPI 0.1

Additional context var observers = netIdentity.GetObservers(); while (observers.MoveNext()) { ulong conn = observers.Current; if (conn != NetworkManager.Singleton.LocalClientId) { MemoryStream stream = new MemoryStream(); using (var writer = PooledNetworkWriter.Get(stream)) { // Send the message. This calls HandleSync on the receiving clients. state.Serialize(writer); CustomMessagingManager.SendNamedMessage("Method", conn, stream); } } }

CosmicStud avatar Oct 03 '21 17:10 CosmicStud

Added to the bug backlog as MTT-1581

will-mearns avatar Oct 11 '21 16:10 will-mearns

This issue was closed because it has been inactive for more than a year. If you still have issues or questions around the topic, we suggest asking on our discord.

ashwinimurt avatar Aug 22 '22 19:08 ashwinimurt