commit 6ade5903dcd7631593a4d46b4988af1ac13ab857 parent 7bb3e5336aa712e239261a53c1db9ecd128b4d6d Author: ThomasV <thomasv@electrum.org> Date: Thu, 7 Feb 2019 13:30:14 +0100 network: fix send_multiple_requests Diffstat:
M | electrum/network.py | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/electrum/network.py b/electrum/network.py @@ -1161,6 +1161,8 @@ class Network(PrintError): res = e responses[iface.server] = res async with TaskGroup() as group: - for interface in self.interfaces.values(): - await group.spawn(get_response(interface)) + for server in servers: + interface = self.interfaces.get(server) + if interface: + await group.spawn(get_response(interface)) return responses