diff --git a/modules/timer/parkour.go b/modules/timer/parkour.go index 73b085055..af31002ee 100644 --- a/modules/timer/parkour.go +++ b/modules/timer/parkour.go @@ -282,7 +282,7 @@ func (this *ParkourComp) match() { for _, v := range bule { buleuser = append(buleuser, this.teams[v]...) } - this.tlock.RLock() + this.tlock.RUnlock() if len(users)+rednum+bulenum < 6 { return @@ -343,7 +343,7 @@ func (this *ParkourComp) match() { } this.total -= int32(rednum) this.total -= int32(bulenum) - this.tlock.Lock() + this.tlock.Unlock() } // 从远程库查询用户