diff --git a/eduvpn/app.py b/eduvpn/app.py index 0d5b722e..28d2036f 100644 --- a/eduvpn/app.py +++ b/eduvpn/app.py @@ -458,6 +458,7 @@ def reconnect(success: bool = True): if callback: callback(False) return + time.sleep(int(os.getenv("EDUVPN_RENEW_DELAY", "1"))) # Delete the OAuth access and refresh token # Start the OAuth authorization flow self.common.renew_session() diff --git a/eduvpn/cli.py b/eduvpn/cli.py index b0b3f955..8a338ea7 100644 --- a/eduvpn/cli.py +++ b/eduvpn/cli.py @@ -731,3 +731,7 @@ def letsconnect(): _common = common.EduVPN(LETSCONNECT_CLIENT_ID, __version__, str(LETSCONNECT_CONFIG_PREFIX)) cmd = CommandLine("Let's Connect!", LETS_CONNECT, _common) cmd.start() + + +if __name__ == "__main__": + eduvpn()