This commit is contained in:
aozhiwei 2024-03-19 16:59:59 +08:00
parent 754d7515d7
commit 00bbfab6ef

View File

@ -2,8 +2,8 @@ package team
import ( import (
"q5" "q5"
/*"f5" "f5"
"cs" /*"cs"
"main/common" "main/common"
"mt"*/ "mt"*/
) )
@ -12,6 +12,7 @@ type matchingInfo struct {
team *team team *team
addTick int64 addTick int64
entry q5.ListHead entry q5.ListHead
matchTimerWp *f5.TimerWp
matchOk* matchingInfo matchOk* matchingInfo
} }
@ -48,6 +49,9 @@ func (this *matchMgr) cancelMatch(team *team) bool {
panic("cancelMatching error") panic("cancelMatching error")
return false return false
} }
if !m.matchTimerWp.Expired() {
f5.GetTimer().Delete(m.matchTimerWp)
}
m.entry.DelInit() m.entry.DelInit()
delete(this.teamUuidHash, team.GetTeamUuid()) delete(this.teamUuidHash, team.GetTeamUuid())
} }