From 1d09d1a079f8ce577de13ab43c2e9add7a6247bc Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Fri, 17 Mar 2017 00:44:00 +0100 Subject: [bug] let's remove hardcoded providers --- src/leap/bitmask/vpn/_status.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/leap/bitmask/vpn/_status.py') diff --git a/src/leap/bitmask/vpn/_status.py b/src/leap/bitmask/vpn/_status.py index 7c8ff6b0..d4e8778e 100644 --- a/src/leap/bitmask/vpn/_status.py +++ b/src/leap/bitmask/vpn/_status.py @@ -52,8 +52,11 @@ class VPNStatus(object): self.set_status(status, errcode) def set_status(self, status, errcode): - if status in ("AUTH", "WAIT"): + if status in ("AUTH", "WAIT", "CONNECTING", "GET_CONFIG", + "ASSIGN_IP", "ADD_ROUTES", "RECONNECTING"): status = "starting" + elif status == "EXITING": + status = "stopping" elif status == "CONNECTED": status = "on" -- cgit v1.2.3