vendor: Fix kcp deadlock

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4461
This commit is contained in:
Audrius Butkevicius
2017-10-25 19:34:38 +00:00
committed by Jakob Borg
parent dc42db444b
commit ff0a83fe5b
2 changed files with 2 additions and 2 deletions

View File

@@ -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())
}