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:
|
for i in connections:
|
||||||
if i == node:
|
if i == node:
|
||||||
continue
|
continue
|
||||||
if i.services | protocol.NODE_DANDELION:
|
try:
|
||||||
peers.append(i)
|
if i.services | protocol.NODE_DANDELION:
|
||||||
if len(peers) == 2:
|
peers.append(i)
|
||||||
break
|
if len(peers) == 2:
|
||||||
|
break
|
||||||
|
except AttributeError:
|
||||||
|
continue
|
||||||
return peers
|
return peers
|
||||||
|
|
||||||
def connectToStream(self, streamNumber):
|
def connectToStream(self, streamNumber):
|
||||||
|
|
Reference in New Issue
Block a user