public void NotifyInDisConnectClient(ServerPacketData requestData) { var sessionIndex = requestData.SessionIndex; var roomNum = SessionManager.GetRoomNumber(sessionIndex); var user = UserMgr.GetUser(sessionIndex); if (roomNum != PacketDef.INVALID_ROOM_NUMBER && user != null) { SendInternalRoomLeavePacket(roomNum, user.ID()); } if (user != null) { UserMgr.RemoveUser(sessionIndex); } SessionManager.SetClear(sessionIndex); InnerMessageHostProgram.CurrentUserCount(ServerNetwork.SessionCount); }
public void NotifyInConnectClient(ServerPacketData requestData) { InnerMessageHostProgram.CurrentUserCount(ServerNetwork.SessionCount); }