private void OnApplicationQuit() { stopConnectAll = true; try { NetProxcy.CloseSocket(); } catch (Exception exception) { com.tencent.pandora.Logger.d(exception.Message); } com.tencent.pandora.Logger.d("Pandora OnApplicationQuit"); instance = null; pandora_gm = null; }
public static void LogOutAccount() { try { Configer.strCtrFlagTotalSwitch = string.Empty; stopConnectAll = false; NetProxcy.CloseSocket(); if (Pdr.isInitUlua) { object[] args = new object[] { string.Empty }; Util.CallMethod("commonlib", "ChangeRole", args); } } catch (Exception exception) { com.tencent.pandora.Logger.LogNetError(Configer.iCodeCSException, exception.Message); } }