Skip to content

Commit 666962f

Browse files
TACIXATTACIXAT
TACIXAT
authored and
TACIXAT
committed
Check disconnected before bailing in addPeer.
1 parent bf13205 commit 666962f

File tree

4 files changed

+1
-1
lines changed

4 files changed

+1
-1
lines changed

bin/party-line-linux

0 Bytes
Binary file not shown.

bin/party-line-macos

0 Bytes
Binary file not shown.

bin/party-line-win.exe

0 Bytes
Binary file not shown.

white-box/kad.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ func (wb *WhiteBox) cacheMin(min MinPeer) {
178178

179179
func (wb *WhiteBox) addPeer(peer *Peer, seenTime time.Time) {
180180
cache, seen := wb.PeerCache.Get(peer.Id())
181-
if seen && cache.Added {
181+
if seen && cache.Added && !cache.Disconnected {
182182
return
183183
}
184184

0 commit comments

Comments
 (0)