From f80e61fef698b0a720fad47235985766d03d3939 Mon Sep 17 00:00:00 2001 From: meejah Date: Wed, 31 Jan 2018 10:45:17 -0700 Subject: [PATCH] put setServiceParent calls in create_* --- src/allmydata/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/allmydata/client.py b/src/allmydata/client.py index 0b1f3f24e..07aa24068 100644 --- a/src/allmydata/client.py +++ b/src/allmydata/client.py @@ -246,6 +246,9 @@ def create_client_from_config(config): ) i2p_provider.setServiceParent(client) tor_provider.setServiceParent(client) + for ic in introducer_clients: + ic.setServiceParent(client) + storage_broker.setServiceParent(client) return defer.succeed(client) @@ -369,10 +372,7 @@ class _Client(node.Node, pollmixin.PollMixin): self.introducer_clients = introducer_clients self.introducer_furls = introducer_furls # appears completely unused (but for tests?) - for ic in introducer_clients: - ic.setServiceParent(self) self.storage_broker = storage_farm_broker - self.storage_broker.setServiceParent(self) self.init_stats_provider() self.init_secrets()