From 21192e388407d37a5c3eed7417a42e356f78bc3c Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Wed, 17 May 2023 17:08:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=BB=A3=E7=A0=81=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/timer/parkour.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() } // 从远程库查询用户