tweak error sleep
This commit is contained in:
@@ -54,9 +54,9 @@ def establish_vpn_connection(ovpn_file, credential_file, log_file, debug_print=N
|
||||
return True, line
|
||||
# Check for AUTH_FAILED message
|
||||
if "AUTH: Received control message: AUTH_FAILED" in line:
|
||||
debug_print("Authentication failed. Sleeping for 15 seconds.")
|
||||
debug_print("Authentication failed. Sleeping for 5 seconds.")
|
||||
#print(f"{datetime.datetime.now()} [OpenVPN Manger]: AUTH: Received control message: AUTH_FAILED, sleeping for 15 seconds")
|
||||
time.sleep(15)
|
||||
time.sleep(5)
|
||||
return False, "AUTH: Received control message: AUTH_FAILED"
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user