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
parent 9ecf9a3f48
commit 9c60bb8336
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())
}