mirror of
https://github.com/logos-storage/deluge.git
synced 2026-01-07 23:53:12 +00:00
Only show peers that we've exchanged a handshake with.
This commit is contained in:
parent
1bf2339b0f
commit
c884142691
@ -238,7 +238,7 @@ class Torrent:
|
|||||||
|
|
||||||
for peer in peers:
|
for peer in peers:
|
||||||
# We do not want to report peers that are half-connected
|
# We do not want to report peers that are half-connected
|
||||||
if peer.flags & peer.connecting:
|
if peer.flags & peer.connecting or peer.flags & peer.handshake:
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
client = str(peer.client).decode("utf-8")
|
client = str(peer.client).decode("utf-8")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user