public void Disconnect() { if (_lolClient.IsConnected) { try { _lolClient.Disconnect(); } catch { } } }
public static void HandleSynchVersionMessage(SynchVersionMessage message, LoLClient client) { string version = Crypto.GetVersion(message.version); if (version != LoLServer.CLIENT_REQUIRED_VERSION) { client.Disconnect(); } else { var infos = ConfigurationProvider.Instance.GetPlayersInformations(); client.Send(new SynchVersionAnswerMessage(0, 1, (int)client.Hero.Game.Map.Id, infos, LoLServer.CLIENT_REQUIRED_VERSION, GameModeEnum.CLASSIC, "NA1", 487826), Channel.CHL_S2C); } }