summaryrefslogtreecommitdiff
path: root/src/leap/eip
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-10-11 08:23:22 +0900
committerkali <kali@leap.se>2012-10-11 08:23:22 +0900
commitb70a6664f0603297bf8b20809b5a64677900b405 (patch)
tree2071e7d53a5e0ae774a166294ba5253b54548e46 /src/leap/eip
parent5dbe01e4dd22fba66d9553c062b89ae9c3a39256 (diff)
add signal to end of eip checks
this fixes random error on leap initialization
Diffstat (limited to 'src/leap/eip')
-rw-r--r--src/leap/eip/eipconnection.py4
-rw-r--r--src/leap/eip/openvpnconnection.py8
2 files changed, 5 insertions, 7 deletions
diff --git a/src/leap/eip/eipconnection.py b/src/leap/eip/eipconnection.py
index bdf70f9c..fea830f3 100644
--- a/src/leap/eip/eipconnection.py
+++ b/src/leap/eip/eipconnection.py
@@ -84,7 +84,7 @@ class EIPConnection(OpenVPNConnection):
"""
entry point for connection process
"""
- self.forget_errors()
+ #self.forget_errors()
self._try_connection()
def disconnect(self):
@@ -120,7 +120,7 @@ class EIPConnection(OpenVPNConnection):
logger.warning('connection refused')
return
if not state:
- logger.debug('no state')
+ #logger.debug('no state')
return
(ts, status_step,
ok, ip, remote) = state
diff --git a/src/leap/eip/openvpnconnection.py b/src/leap/eip/openvpnconnection.py
index a835ead9..14839f6b 100644
--- a/src/leap/eip/openvpnconnection.py
+++ b/src/leap/eip/openvpnconnection.py
@@ -194,10 +194,9 @@ to be triggered for each one of them.
# base class to test independently?)
#
- def forget_errors(self):
- #print('forgetting errors')
- logger.debug('forgetting errors')
- self.with_errors = False
+ #def forget_errors(self):
+ #logger.debug('forgetting errors')
+ #self.with_errors = False
def connect_to_management(self):
"""Connect to openvpn management interface"""
@@ -216,7 +215,6 @@ to be triggered for each one of them.
#self.tn.read_until('SUCCESS:', 2)
self._seek_to_eof()
- #self.forget_errors()
return True
def _seek_to_eof(self):