From db7642a2affccf1bcf0670c28dbbb6b891c46f04 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Tue, 27 Jun 2017 18:35:45 +0200 Subject: [bug] acknoledge max_retries to the openvpn telnet interface We were allways trying to reconnect for ever. --- src/leap/bitmask/vpn/_management.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/leap/bitmask/vpn/_management.py b/src/leap/bitmask/vpn/_management.py index 80a82c9..e86b3e5 100644 --- a/src/leap/bitmask/vpn/_management.py +++ b/src/leap/bitmask/vpn/_management.py @@ -112,7 +112,7 @@ class VPNManagement(object): self.connect() reactor.callLater( self.CONNECTION_RETRY_TIME, - self.connect_retry, retry + 1) + self.connect_retry, retry + 1, max_retries) def process_log(self): if not self._watcher or not self._tn: -- cgit v1.2.3