mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 03:06:33 +00:00
handle None for providers
This commit is contained in:
parent
793827f8a6
commit
903d4afaa4
@ -689,8 +689,11 @@ class Node(service.MultiService):
|
||||
|
||||
# this can go away once Client.init_client_storage_broker is moved into create_client()
|
||||
self._i2p_provider = i2p_provider
|
||||
self._i2p_provider.setServiceParent(self)
|
||||
self._tor_provider = tor_provider
|
||||
# tests can provide None
|
||||
if i2p_provider:
|
||||
self._i2p_provider.setServiceParent(self)
|
||||
if tor_provider:
|
||||
self._tor_provider.setServiceParent(self)
|
||||
|
||||
self.init_tempdir()
|
||||
|
Loading…
Reference in New Issue
Block a user