summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn/_status.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/bitmask/vpn/_status.py')
-rw-r--r--src/leap/bitmask/vpn/_status.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/leap/bitmask/vpn/_status.py b/src/leap/bitmask/vpn/_status.py
index 5d41a535..5cf0cc77 100644
--- a/src/leap/bitmask/vpn/_status.py
+++ b/src/leap/bitmask/vpn/_status.py
@@ -67,6 +67,9 @@ class VPNStatus(object):
return status
def set_status(self, status, errcode):
+ if not status:
+ return
+
if status in self._STARTING:
status = "starting"
elif status in self._STOPPING: