fix
This commit is contained in:
parent
a4f31629cc
commit
f3ddc24fab
@ -62,7 +62,11 @@ func (this *sApiForward) AcquireLock(accountId string) *SApiForwardLock {
|
||||
|
||||
func (this *sApiForward) ReleaseLock(l *SApiForwardLock) {
|
||||
l.lock.Unlock()
|
||||
atomic.AddInt32(&l.lockTimes, -1)
|
||||
if atomic.AddInt32(&l.lockTimes, -1) < 1 {
|
||||
crc32 := q5.Crc32(l.accountId)
|
||||
c := this.userCache[int64(crc32)%int64(len(this.userCache))]
|
||||
delete(*c.userHash, l.accountId)
|
||||
}
|
||||
}
|
||||
|
||||
func (this *sApiForward) IncInvalidSessionTimes() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user