tweak error sleep

This commit is contained in:
2024-11-03 19:44:08 -06:00
parent 309e152ef9
commit c4e4d6c734

View File

@@ -54,9 +54,9 @@ def establish_vpn_connection(ovpn_file, credential_file, log_file, debug_print=N
return True, line return True, line
# Check for AUTH_FAILED message # Check for AUTH_FAILED message
if "AUTH: Received control message: AUTH_FAILED" in line: 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") #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" return False, "AUTH: Received control message: AUTH_FAILED"
break break