diff options
author | Tomás Touceda <chiiph@leap.se> | 2014-09-04 15:24:46 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2014-09-04 15:24:46 -0300 |
commit | 125a83037657bd7783ebc5b9e8aca75b5e886780 (patch) | |
tree | bb1b1287fc6091e4848cd0af72aafad56f495e00 /src/leap/bitmask/backend/components.py | |
parent | 5dac91fb026aeb87529a1a796004fc60d72446bc (diff) | |
parent | e6fae0977015919282971dbe8a00938415c1233b (diff) |
Merge remote-tracking branch 'refs/remotes/ivan/code-logging-cleanup' into develop
Diffstat (limited to 'src/leap/bitmask/backend/components.py')
-rw-r--r-- | src/leap/bitmask/backend/components.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/leap/bitmask/backend/components.py b/src/leap/bitmask/backend/components.py index 89f3c5a6..d4f6d176 100644 --- a/src/leap/bitmask/backend/components.py +++ b/src/leap/bitmask/backend/components.py @@ -452,20 +452,14 @@ class EIP(object): else: logger.debug('EIP: no errors') - def _do_stop(self, shutdown=False, restart=False): + def stop(self, shutdown=False, restart=False): """ - Stop the service. This is run in a thread to avoid blocking. + Stop the service. """ self._vpn.terminate(shutdown, restart) if IS_LINUX: self._wait_for_firewall_down() - def stop(self, shutdown=False, restart=False): - """ - Stop the service. - """ - return threads.deferToThread(self._do_stop, shutdown, restart) - def _wait_for_firewall_down(self): """ Wait for the firewall to come down. |