summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/services
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-04-10 15:30:48 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2014-04-15 15:00:09 -0300
commitc45558a1b96917e00b931c58034c2d3db187d63b (patch)
tree3f9395862d078fec8f401ec60c997b00e50468ec /src/leap/bitmask/services
parenta4772ef52bb7f258a079aaa88cc41a4f8e086073 (diff)
Handle trying to kill a non running process.
Diffstat (limited to 'src/leap/bitmask/services')
-rw-r--r--src/leap/bitmask/services/eip/vpnprocess.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/leap/bitmask/services/eip/vpnprocess.py b/src/leap/bitmask/services/eip/vpnprocess.py
index a17d94d2..9986526a 100644
--- a/src/leap/bitmask/services/eip/vpnprocess.py
+++ b/src/leap/bitmask/services/eip/vpnprocess.py
@@ -229,8 +229,11 @@ class VPN(object):
Sends a kill signal to the process.
"""
self._stop_pollers()
- self._vpnproc.aborted = True
- self._vpnproc.killProcess()
+ if self._vpnproc is None:
+ logger.debug("There's no vpn process running to kill.")
+ else:
+ self._vpnproc.aborted = True
+ self._vpnproc.killProcess()
def terminate(self, shutdown=False):
"""