mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
comment
This commit is contained in:
parent
58b434ccff
commit
3c1ad95399
@ -120,15 +120,7 @@ public override void Disconnect()
|
|||||||
DisconnectInternal();
|
DisconnectInternal();
|
||||||
|
|
||||||
// THIS WAS PREVIOUSLY IN NETWORKCLIENT.DISCONNECT:
|
// THIS WAS PREVIOUSLY IN NETWORKCLIENT.DISCONNECT:
|
||||||
|
// TODO move into DisconnectInternal? or not?
|
||||||
// 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);
|
|
||||||
QueueDisconnectedEvent();
|
QueueDisconnectedEvent();
|
||||||
NetworkServer.RemoveLocalConnection();
|
NetworkServer.RemoveLocalConnection();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user