diff --git a/server/hallserver/room/roommgr.go b/server/hallserver/room/roommgr.go index 95a126e3..79e361e5 100644 --- a/server/hallserver/room/roommgr.go +++ b/server/hallserver/room/roommgr.go @@ -13,7 +13,6 @@ import ( type roomMgr struct { cs.MsgHandlerImpl currRoomId int32 - currRoomIdx int64 idHash map[string]*room roomList q5.ListHead } @@ -22,7 +21,6 @@ func (this *roomMgr) Init() { this.idHash = make(map[string]*room) this.roomList.Init(nil) this.currRoomId = 10000 - this.currRoomIdx = 10000 } func (this *roomMgr) UnInit() { @@ -127,6 +125,5 @@ func (this *roomMgr) genRoomId() int32 { } func (this *roomMgr) genRoomIdx() int64 { - this.currRoomIdx++ - return this.currRoomIdx + return f5.GetApp().NewUuid() }