فهرست منبع

vendor: Fix kcp deadlock

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4461
Audrius Butkevicius 8 سال پیش
والد
کامیت
ff0a83fe5b
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      vendor/github.com/AudriusButkevicius/kcp-go/blacklist.go
  2. 1 1
      vendor/manifest

+ 1 - 1
vendor/github.com/AudriusButkevicius/kcp-go/blacklist.go

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

+ 1 - 1
vendor/manifest

@@ -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
 		},