diff options
author | antialias <antialias@leap.se> | 2012-09-28 18:16:47 -0400 |
---|---|---|
committer | antialias <antialias@leap.se> | 2012-09-28 18:16:47 -0400 |
commit | 58344bb28c1c0f25ed37624ff487cc8f24821d52 (patch) | |
tree | 873a8225862e20124ee69af7c509772dab952674 /src/leap/baseapp/network.py | |
parent | 202345940e12d4633c5d46d5ed21c3a433573d48 (diff) |
Functionality to shutdown network checker when openvpn is stopped.
But thread not being successfully killed.
Diffstat (limited to 'src/leap/baseapp/network.py')
-rw-r--r-- | src/leap/baseapp/network.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/leap/baseapp/network.py b/src/leap/baseapp/network.py index 42a42fcd..75690cc9 100644 --- a/src/leap/baseapp/network.py +++ b/src/leap/baseapp/network.py @@ -36,7 +36,7 @@ class NetworkCheckerAppMixin(object): errq = self.conductor.error_queue while errq.qsize() != 0: - logger.debug('%s errors left in conductor queue', errq.qsize()) + logger.debug('%s errors left in network queue', errq.qsize()) # we get exception and original traceback from queue error, tb = errq.get() @@ -44,7 +44,7 @@ class NetworkCheckerAppMixin(object): logger.error('%s: %s', error.__class__.__name__, error.message) if issubclass(error.__class__, eip_exceptions.EIPClientError): - self.handle_eip_error(error) + self.handle_network_error(error) else: # deprecated form of raising exception. @@ -53,4 +53,5 @@ class NetworkCheckerAppMixin(object): if error.failfirst is True: break - + def handle_network_error(self, error): + pass |