More knownNodes init

- also init children if they are missing
master
Peter Šurda 7 years ago
parent b0539f5cb4
commit e664746f04
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

@ -71,6 +71,10 @@ def connectToStream(streamNumber):
with knownnodes.knownNodesLock:
if streamNumber not in knownnodes.knownNodes:
knownnodes.knownNodes[streamNumber] = {}
if streamNumber*2 not in knownnodes.knownNodes:
knownnodes.knownNodes[streamNumber*2] = {}
if streamNumber*2+1 not in knownnodes.knownNodes:
knownnodes.knownNodes[streamNumber*2+1] = {}
for i in range(maximumNumberOfHalfOpenConnections):
a = outgoingSynSender()

Loading…
Cancel
Save