Dandelion fixes
- in route selector, some connections may not have the services attribute (yet) - Addresses #1049
This commit is contained in:
parent
d574b167d8
commit
9923d288e0
|
@ -61,10 +61,13 @@ class BMConnectionPool(object):
|
|||
for i in connections:
|
||||
if i == node:
|
||||
continue
|
||||
if i.services | protocol.NODE_DANDELION:
|
||||
peers.append(i)
|
||||
if len(peers) == 2:
|
||||
break
|
||||
try:
|
||||
if i.services | protocol.NODE_DANDELION:
|
||||
peers.append(i)
|
||||
if len(peers) == 2:
|
||||
break
|
||||
except AttributeError:
|
||||
continue
|
||||
return peers
|
||||
|
||||
def connectToStream(self, streamNumber):
|
||||
|
|
Loading…
Reference in New Issue
Block a user