From 7ac3749274d6516ef7c3f57dc53eaeda73a1d5a8 Mon Sep 17 00:00:00 2001 From: vis2k Date: Tue, 26 Feb 2019 15:01:18 +0100 Subject: [PATCH] NetworkServer.RemoveLocalClient: remove unnecessary parameter --- Assets/Mirror/Runtime/LocalClient.cs | 2 +- Assets/Mirror/Runtime/NetworkServer.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Mirror/Runtime/LocalClient.cs b/Assets/Mirror/Runtime/LocalClient.cs index c06b8584f..376624527 100644 --- a/Assets/Mirror/Runtime/LocalClient.cs +++ b/Assets/Mirror/Runtime/LocalClient.cs @@ -19,7 +19,7 @@ public override void Disconnect() { packetQueue.Enqueue(Protocol.PackMessage((ushort)MsgType.Disconnect, new EmptyMessage())); } - NetworkServer.RemoveLocalClient(connection); + NetworkServer.RemoveLocalClient(); } internal void InternalConnectLocalServer() diff --git a/Assets/Mirror/Runtime/NetworkServer.cs b/Assets/Mirror/Runtime/NetworkServer.cs index ad1979146..5d22105c5 100644 --- a/Assets/Mirror/Runtime/NetworkServer.cs +++ b/Assets/Mirror/Runtime/NetworkServer.cs @@ -147,7 +147,7 @@ internal static int AddLocalClient(LocalClient localClient) return 0; } - internal static void RemoveLocalClient(NetworkConnection localClientConnection) + internal static void RemoveLocalClient() { if (s_LocalConnection != null) {