summaryrefslogtreecommitdiff
path: root/src/leap/base/network.py
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/base/network.py
parent348eb0852d6f1b8b2b72baba8a236bc30a6f2a4e (diff)
implemented abstracted layer with matching and passed callback.
tests as well.
Diffstat (limited to 'src/leap/base/network.py')
-rw-r--r--src/leap/base/network.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/leap/base/network.py b/src/leap/base/network.py
index bd8f15c7..765d8ea0 100644
--- a/src/leap/base/network.py
+++ b/src/leap/base/network.py
@@ -14,9 +14,6 @@ from time import sleep
logger = logging.getLogger(name=__name__)
-#EVENTS OF NOTE
-EVENT_CONNECT_REFUSED = "[ECONNREFUSED]: Connection refused (code=111)"
-
class NetworkCheckerThread(object):
"""
@@ -57,12 +54,6 @@ class NetworkCheckerThread(object):
def run_checks(self):
pass
- def parse_log(self, log):
- for line in log:
- if EVENT_CONNECT_REFUSED in line:
- #fire cb to stop openvpn server
- pass
-
#private methods
#here all the observers in fail_callbacks expect one positional argument,