void GameConnection_DisconnectedEvent(object sender, EventArgs e)
 {
     Logger.Trace("GameServer IP: {0} disconnected", m_CurrentInfo != null ? m_CurrentInfo.Id.ToString() : this.ToString());
     Dispose();
     GameServerController.DisconnecteGameServer(m_CurrentInfo != null ? m_CurrentInfo.Id : this.CurrentInfo.Id);
     m_CurrentInfo = null;
     //Game server will be corresponding status offline
 }
 void GameConnection_DisconnectedEvent(object sender, EventArgs e)
 {
     Logger.Trace("Game Server {0} : Disconnected", m_CurrentInfo != null ? m_CurrentInfo.Id.ToString() : this.ToString());
     Dispose();
     GameServerController.DisconnecteGameServer(m_CurrentInfo != null ? m_CurrentInfo.Id : this.CurrentInfo.Id);
     m_CurrentInfo = null;
     //Put the status of the game server offline
 }
Esempio n. 3
0
 void GameConnection_DisconnectedEvent(object sender, EventArgs e)
 {
     Logger.Trace("Game Server {0} : Disconnected", m_CurrentInfo != null ? m_CurrentInfo.Id.ToString() : this.ToString());
     Dispose();
     GameServerController.DisconnecteGameServer(m_CurrentInfo != null ? m_CurrentInfo.Id : this.CurrentInfo.Id);
     m_CurrentInfo = null;
     //将游戏服务器对应的状态离线
 }