1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-08 14:07:02 +09:00

Fix accidental broadcast

This commit is contained in:
mcrakhman 2024-07-04 23:38:53 +02:00
parent 561bb3bd04
commit e82e92d5d2
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B

View file

@ -32,6 +32,6 @@ func (l *Limit) Release(id string) {
defer l.cond.L.Unlock() defer l.cond.L.Unlock()
if l.tokens[id] > 0 { if l.tokens[id] > 0 {
l.tokens[id]-- l.tokens[id]--
l.cond.Broadcast() l.cond.Signal()
} }
} }