summaryrefslogtreecommitdiff
path: root/src/leap/base/network.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-10-18 02:19:03 +0900
committerkali <kali@leap.se>2012-10-18 02:19:03 +0900
commit17896b9f9cbfbca7bc0a0344050dddea8ba61880 (patch)
tree47a708e0a77a176c414cee69ce3001f5af5c60dc /src/leap/base/network.py
parent28dcbfbc6e3a61d47c2a1218bce5d2693c77d04d (diff)
parentf6e900f024074435349eb778a2d89baed55e1e6c (diff)
Merge branch 'develop' into feature/generic-wizard
Diffstat (limited to 'src/leap/base/network.py')
-rw-r--r--src/leap/base/network.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/leap/base/network.py b/src/leap/base/network.py
index e90139c4..3891b00a 100644
--- a/src/leap/base/network.py
+++ b/src/leap/base/network.py
@@ -3,6 +3,7 @@ from __future__ import (print_function)
import logging
import threading
+from leap.eip.config import get_eip_gateway
from leap.base.checks import LeapNetworkChecker
from leap.base.constants import ROUTE_CHECK_INTERVAL
from leap.base.exceptions import TunnelNotDefaultRouteError
@@ -29,7 +30,8 @@ class NetworkCheckerThread(object):
# XXX get provider_gateway and pass it to checker
# see in eip.config for function
# #718
- self.checker = LeapNetworkChecker()
+ self.checker = LeapNetworkChecker(
+ provider_gw = get_eip_gateway())
def start(self):
self.process_handle = self._launch_recurrent_network_checks(
@@ -55,6 +57,8 @@ class NetworkCheckerThread(object):
break
except TunnelNotDefaultRouteError:
# XXX ??? why do we sleep here???
+ # aa: If the openvpn isn't up and running yet,
+ # let's give it a moment to breath.
sleep(1)
fail_observer_dict = dict(((