void CloseAllConnections() { if (m_ConnectionLogin != null) { m_ConnectionLogin.Dispose(); } m_ConnectionLogin = null; }
public void UnInitEngine() { m_MessageRouter = null; if (m_ConnectionLogin != null) { m_ConnectionLogin.Dispose(); } m_ConnectionLogin = null; if (m_ConnectionGame != null) { m_ConnectionGame.Dispose(); } m_ConnectionGame = null; if (mRecvChatHistorys != null) { mRecvChatHistorys.Clear(); mRecvChatHistorys = null; } }
public void CloseAllConnections() { if (m_ConnectionLogin != null) { m_ConnectionLogin.Dispose(); } m_ConnectionLogin = null; if (m_Timer != null) { m_Timer.Stop(); } m_Timer = null; }
public void CloseAllConnections() { if (m_ConnectionGame != null) { if (m_ConnectionGame.State != SFConnection.ConnectionState.DISCONNECTED) { if (mGameSvrDisConnectedAction != null) { mGameSvrDisConnectedAction(this, m_Game); } } } if (m_ConnectionLogin != null) { if (m_ConnectionLogin.State != SFConnection.ConnectionState.DISCONNECTED) { if (mLoginDisConnectedAction != null) { mLoginDisConnectedAction(this, m_Login); } } } m_Login = null; m_Game = null; if (m_ConnectionLogin != null) { m_ConnectionLogin.Dispose(); } m_ConnectionLogin = null; if (m_ConnectionGame != null) { m_ConnectionGame.Dispose(); } m_ConnectionGame = null; if (m_MatchedInfo != null) { m_MatchedInfo.Dispose(); } // PrintStatus("m_MatchedInfo Delete ID = {0}", m_LoginID); m_MatchedInfo = null; }
public void CloseAllConnections() { if (m_ConnectionLogin != null) { if (m_ConnectionLogin.State != SFConnection.ConnectionState.DISCONNECTED) { if (mLoginDisConnectedAction != null) { mLoginDisConnectedAction(this, m_Login); } } } if (m_ConnectionLogin != null) { m_ConnectionLogin.Dispose(); } m_ConnectionLogin = null; m_Login = null; }