diff options
author | Ivan Alejandro <ivanalejandro0@gmail.com> | 2014-04-10 15:30:48 -0300 |
---|---|---|
committer | Ivan Alejandro <ivanalejandro0@gmail.com> | 2014-04-15 15:00:09 -0300 |
commit | c45558a1b96917e00b931c58034c2d3db187d63b (patch) | |
tree | 3f9395862d078fec8f401ec60c997b00e50468ec /src/leap/bitmask/services/eip/vpnprocess.py | |
parent | a4772ef52bb7f258a079aaa88cc41a4f8e086073 (diff) |
Handle trying to kill a non running process.
Diffstat (limited to 'src/leap/bitmask/services/eip/vpnprocess.py')
-rw-r--r-- | src/leap/bitmask/services/eip/vpnprocess.py | 7 |
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): """ |