mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
NetworkServer.DisconnectAllConnections: simplify code
This commit is contained in:
parent
a574b181bb
commit
a3e9fbb5bd
@ -293,9 +293,8 @@ public static void DisconnectAll()
|
||||
|
||||
public static void DisconnectAllConnections()
|
||||
{
|
||||
foreach (KeyValuePair<int, NetworkConnection> kvp in connections)
|
||||
foreach (NetworkConnection conn in connections.Values)
|
||||
{
|
||||
NetworkConnection conn = kvp.Value;
|
||||
conn.Disconnect();
|
||||
// call OnDisconnected unless local player in host mode
|
||||
if (conn.connectionId != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user