From b62d0e2390bc1cc6bd51e97801b2b8ef853b1a44 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Wed, 28 Jun 2017 14:53:42 +0200 Subject: [feat] return starting status for a restarting VPN In case of the openvpn process being off, if we are restarting it we'll report the status as 'starting'. --- src/leap/bitmask/vpn/process.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/leap/bitmask/vpn/process.py b/src/leap/bitmask/vpn/process.py index 5b8bc1b..daf3576 100644 --- a/src/leap/bitmask/vpn/process.py +++ b/src/leap/bitmask/vpn/process.py @@ -101,7 +101,10 @@ class _VPNProcess(protocol.ProcessProtocol, _management.VPNManagement): @property def status(self): - return self._status.status + status = self._status.status + if status['status'] == 'off' and self.restarting: + status['status'] = 'starting' + return status @property def traffic_status(self): -- cgit v1.2.3