summaryrefslogtreecommitdiff
path: root/src/leap/baseapp
diff options
context:
space:
mode:
authorantialias <antialias@leap.se>2012-11-19 16:16:01 -0800
committerkali <kali@leap.se>2013-01-15 22:42:17 +0900
commit14f433c16de60753d122d5946df68e8e82285ca3 (patch)
tree14ad5d77836d4458855737740f42fd089035dda0 /src/leap/baseapp
parent348eb0852d6f1b8b2b72baba8a236bc30a6f2a4e (diff)
implemented abstracted layer with matching and passed callback.
tests as well.
Diffstat (limited to 'src/leap/baseapp')
-rw-r--r--src/leap/baseapp/eip.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/leap/baseapp/eip.py b/src/leap/baseapp/eip.py
index f18a62e7..4fcbee3f 100644
--- a/src/leap/baseapp/eip.py
+++ b/src/leap/baseapp/eip.py
@@ -9,6 +9,7 @@ from leap.baseapp.dialogs import ErrorDialog
from leap.baseapp import constants
from leap.eip import exceptions as eip_exceptions
from leap.eip.eipconnection import EIPConnection
+from leap.base.checks import EVENT_CONNECT_REFUSED
logger = logging.getLogger(name=__name__)
@@ -176,7 +177,8 @@ class EIPConductorAppMixin(object):
# connection information via management interface
log = self.conductor.get_log()
- self.network_checker.parse_log(log)
+ error_matrix = [(EVENT_CONNECT_REFUSED, (self.start_or_stopVPN, ))]
+ self.network_checker.checker.parse_log_and_react(log, error_matrix)
@QtCore.pyqtSlot()
def start_or_stopVPN(self):