Browse Source

network: fix send_multiple_requests

sqlite_db
ThomasV 6 years ago
parent
commit
6ade5903dc
  1. 6
      electrum/network.py

6
electrum/network.py

@ -1161,6 +1161,8 @@ class Network(PrintError):
res = e res = e
responses[iface.server] = res responses[iface.server] = res
async with TaskGroup() as group: async with TaskGroup() as group:
for interface in self.interfaces.values(): for server in servers:
await group.spawn(get_response(interface)) interface = self.interfaces.get(server)
if interface:
await group.spawn(get_response(interface))
return responses return responses

Loading…
Cancel
Save