summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn/tunnel.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2017-08-22 17:48:12 -0400
committerKali Kaneko <kali@leap.se>2017-08-30 16:17:59 -0400
commita4e14e01b1f8259f72b27712c53bd50c0a8bf20f (patch)
tree6fad82b801f0f63e8a78ecfc4154ab61c3cf8bb1 /src/leap/bitmask/vpn/tunnel.py
parentb7b8296c24017ccc2a04cdd0682f4905b8fcf8d7 (diff)
[refactor] remove unused imports and attrs
Diffstat (limited to 'src/leap/bitmask/vpn/tunnel.py')
-rw-r--r--src/leap/bitmask/vpn/tunnel.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/leap/bitmask/vpn/tunnel.py b/src/leap/bitmask/vpn/tunnel.py
index f56e7bc2..a83704f6 100644
--- a/src/leap/bitmask/vpn/tunnel.py
+++ b/src/leap/bitmask/vpn/tunnel.py
@@ -80,9 +80,7 @@ class ConfiguredTunnel(object):
host, port = _get_management_location()
self._host = host
self._port = port
-
self._vpnproc = None
- self._user_stopped = False
def start(self):
return self._start_vpn()
@@ -106,9 +104,6 @@ class ConfiguredTunnel(object):
def _start_vpn(self):
self.log.debug('VPN: start')
-
- self._user_stopped = False
-
args = [self._vpnconfig, self._providerconfig, self._host,
self._port]
kwargs = {'openvpn_verb': 4, 'remotes': self._remotes,
@@ -161,9 +156,6 @@ class ConfiguredTunnel(object):
# TODO how to return False if this fails
# XXX maybe return a deferred
- # We assume that the only valid stops are initiated
- # by an user action, not hard restarts
- self._user_stopped = not restart
if self._vpnproc is not None:
self._vpnproc.restarting = restart