summaryrefslogtreecommitdiff
path: root/src/leap/bitmask
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-03-26 14:52:14 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2014-04-15 15:00:08 -0300
commitc9ce042921d4da8825db4580e27cac4bf74280c3 (patch)
tree3febf7744df5e2dabf4b7e7332f0cdfdb28e9dea /src/leap/bitmask
parentdae03c6f8eeeee7ed573b9b829032a7eea766bf1 (diff)
Use helper to get the ProviderConfig.
Diffstat (limited to 'src/leap/bitmask')
-rw-r--r--src/leap/bitmask/backend.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/leap/bitmask/backend.py b/src/leap/bitmask/backend.py
index d78a9a6a..2d86bf09 100644
--- a/src/leap/bitmask/backend.py
+++ b/src/leap/bitmask/backend.py
@@ -387,11 +387,8 @@ class EIP(object):
:returns: the defer for the operation running in a thread.
:rtype: twisted.internet.defer.Deferred
"""
- if (not self._provider_config.loaded() or
- self._provider_config.get_domain() != domain):
- self._provider_config.load(get_provider_path(domain))
-
- if self._provider_config.loaded():
+ config = self._provider_config
+ if get_provider_config(config, domain):
log.msg("")
eb = self._eip_bootstrapper
d = eb.run_eip_setup_checks(self._provider_config,