aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-08-14 10:10:42 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-08-14 10:10:42 +0200
commit311fb869e01e4c8749e740050ec92f46fd4c9133 (patch)
treeab874770aff3593823a785e90afc7ce208eb13af
parentb7989eb19879c800cb84b51d767905d0a62bbd82 (diff)
use correct retry maximum for terminate-requests
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index df158ad..fc77314 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -538,7 +538,7 @@ fn session(
}
}
Ppp::Terminate(ref reason, attempt) => {
- if attempt >= MAX_ATTEMPTS {
+ if attempt >= MAX_STATUS_ATTEMPTS {
*ppp_state = Ppp::Terminate2(
String::from_utf8(reason.clone()).unwrap_or(String::new()),
);