mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkServer.InternalDisconnectAll moved into DisconnectAll. The class can't be inherited from anymore, no need for an internal version here.
This commit is contained in:
parent
de59e32ce3
commit
a0aa55da97
@ -50,7 +50,7 @@ public static void Shutdown()
|
||||
{
|
||||
if (s_Initialized)
|
||||
{
|
||||
InternalDisconnectAll();
|
||||
DisconnectAll();
|
||||
|
||||
if (dontListen)
|
||||
{
|
||||
@ -271,7 +271,17 @@ public static bool SendToReady(GameObject contextObj, short msgType, MessageBase
|
||||
|
||||
public static void DisconnectAll()
|
||||
{
|
||||
InternalDisconnectAll();
|
||||
DisconnectAllConnections();
|
||||
|
||||
if (s_LocalConnection != null)
|
||||
{
|
||||
s_LocalConnection.Disconnect();
|
||||
s_LocalConnection.Dispose();
|
||||
s_LocalConnection = null;
|
||||
}
|
||||
|
||||
s_Active = false;
|
||||
s_LocalClientActive = false;
|
||||
}
|
||||
|
||||
public static void DisconnectAllConnections()
|
||||
@ -286,21 +296,6 @@ public static void DisconnectAllConnections()
|
||||
connections.Clear();
|
||||
}
|
||||
|
||||
internal static void InternalDisconnectAll()
|
||||
{
|
||||
DisconnectAllConnections();
|
||||
|
||||
if (s_LocalConnection != null)
|
||||
{
|
||||
s_LocalConnection.Disconnect();
|
||||
s_LocalConnection.Dispose();
|
||||
s_LocalConnection = null;
|
||||
}
|
||||
|
||||
s_Active = false;
|
||||
s_LocalClientActive = false;
|
||||
}
|
||||
|
||||
// The user should never need to pump the update loop manually
|
||||
internal static void Update()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user