vendor: Fix kcp deadlock
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4461
This commit is contained in:
2
vendor/github.com/AudriusButkevicius/kcp-go/blacklist.go
generated
vendored
2
vendor/github.com/AudriusButkevicius/kcp-go/blacklist.go
generated
vendored
@@ -42,7 +42,7 @@ func (m *blacklistMap) has(address string, conv uint32) bool {
|
||||
addr: address,
|
||||
convID: conv,
|
||||
}]
|
||||
m.mut.Lock()
|
||||
m.mut.Unlock()
|
||||
return ok && t.After(time.Now())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user