mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 19:10:32 +00:00
NetworkConnectionToServer disco cleanup
This commit is contained in:
parent
120333c8e6
commit
4de0d4a28a
@ -18,13 +18,10 @@ internal override void Send(ArraySegment<byte> segment, int channelId = Channels
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Disconnects this connection.</summary>
|
/// <summary>Disconnects this connection.</summary>
|
||||||
|
// IMPORTANT: calls Transport.Disconnect.
|
||||||
|
// Transport.OnDisconnected is then called at some point in the future.
|
||||||
public override void Disconnect()
|
public override void Disconnect()
|
||||||
{
|
{
|
||||||
// set not ready and handle clientscene disconnect in any case
|
|
||||||
// (might be client or host mode here)
|
|
||||||
// TODO remove redundant state. have one source of truth for .ready!
|
|
||||||
isReady = false;
|
|
||||||
NetworkClient.ready = false;
|
|
||||||
Transport.activeTransport.ClientDisconnect();
|
Transport.activeTransport.ClientDisconnect();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user