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

2
vendor/manifest vendored
View File

@ -21,7 +21,7 @@
"importpath": "github.com/AudriusButkevicius/kcp-go",
"repository": "https://github.com/AudriusButkevicius/kcp-go",
"vcs": "git",
"revision": "54928af49abc3a4e5b645f42466a56cebc4a941e",
"revision": "8ae5f528469c6ab76110f41eb7a51341b7efb946",
"branch": "master",
"notests": true
},