From 612d219b26d5e666139041fdd3d6781409c2624f Mon Sep 17 00:00:00 2001 From: Mister_Nebula <41904486+misternebula@users.noreply.github.com> Date: Fri, 26 Aug 2022 20:47:47 +0100 Subject: [PATCH] testing --- QSB/Player/Messages/PlayerKickMessage.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/QSB/Player/Messages/PlayerKickMessage.cs b/QSB/Player/Messages/PlayerKickMessage.cs index ccc48f16..23f83f65 100644 --- a/QSB/Player/Messages/PlayerKickMessage.cs +++ b/QSB/Player/Messages/PlayerKickMessage.cs @@ -40,9 +40,9 @@ internal class PlayerKickMessage : QSBMessage private void KickPlayer() { - var connectionToClient = PlayerId.GetNetworkConnection(); - connectionToClient.Disconnect(); - Transport.activeTransport.OnServerDisconnected(connectionToClient.connectionId); + //var connectionToClient = PlayerId.GetNetworkConnection(); + //connectionToClient.Disconnect(); + //Transport.activeTransport.OnServerDisconnected(connectionToClient.connectionId); } public override void OnReceiveRemote() @@ -61,5 +61,7 @@ internal class PlayerKickMessage : QSBMessage DebugLog.ToAll(string.Format(QSBLocalization.Current.KickedFromServer, Data)); MenuManager.Instance.OnKicked(Data); + + NetworkClient.Disconnect(); } } \ No newline at end of file