From 3c1ad953998aeced92c214f57bd2a34ed3ecfd5a Mon Sep 17 00:00:00 2001 From: vis2k Date: Tue, 11 May 2021 11:53:26 +0800 Subject: [PATCH] comment --- Assets/Mirror/Runtime/LocalConnections.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Assets/Mirror/Runtime/LocalConnections.cs b/Assets/Mirror/Runtime/LocalConnections.cs index 54dd94c00..bcadcefa5 100644 --- a/Assets/Mirror/Runtime/LocalConnections.cs +++ b/Assets/Mirror/Runtime/LocalConnections.cs @@ -120,15 +120,7 @@ public override void Disconnect() DisconnectInternal(); // THIS WAS PREVIOUSLY IN NETWORKCLIENT.DISCONNECT: - - // call client OnDisconnected with connection to server - // => previously we used to send a DisconnectMessage to - // NetworkServer.localConnection. this would queue the - // message until NetworkClient.Update processes it. - // => invoking the client's OnDisconnected event directly - // here makes tests fail. so let's do it exactly the same - // order as before by queueing the event for next Update! - //OnDisconnectedEvent?.Invoke(connection); + // TODO move into DisconnectInternal? or not? QueueDisconnectedEvent(); NetworkServer.RemoveLocalConnection(); }