summaryrefslogtreecommitdiff
path: root/src/leap/bitmask
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2017-06-30 13:08:15 +0200
committerRuben Pollan <meskio@sindominio.net>2017-06-30 13:10:36 +0200
commit38552e1f17f75b921c587d743f9e1b37c61b5dc5 (patch)
treee37f403de845b6be3109c9a2a3ca8ca513858e17 /src/leap/bitmask
parentbf1984d8707454c1cf13169cc8f937fc3be1dfae (diff)
[bug] don't restart the VPN if we want to stop it
Let's signal clearly that we don't want to restart it. - Resolves: #8956
Diffstat (limited to 'src/leap/bitmask')
-rw-r--r--src/leap/bitmask/vpn/_control.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/leap/bitmask/vpn/_control.py b/src/leap/bitmask/vpn/_control.py
index 1c352be..a57c6e4 100644
--- a/src/leap/bitmask/vpn/_control.py
+++ b/src/leap/bitmask/vpn/_control.py
@@ -124,6 +124,7 @@ class VPNControl(object):
# We assume that the only valid stops are initiated
# by an user action, not hard restarts
self._user_stopped = not restart
+ self._vpnproc.restarting = restart
self._sentterm = True
self._vpnproc.terminate(shutdown=shutdown)