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