mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-04 23:29:25 +00:00
sntp: ensure sntp_retry_timeout reaches the configured limit
See bug #57620 Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
parent
3b2d7e289a
commit
32a72b1a20
@ -388,6 +388,8 @@ sntp_retry(void *arg)
|
||||
if ((new_retry_timeout <= SNTP_RETRY_TIMEOUT_MAX) &&
|
||||
(new_retry_timeout > sntp_retry_timeout)) {
|
||||
sntp_retry_timeout = new_retry_timeout;
|
||||
} else {
|
||||
sntp_retry_timeout = SNTP_RETRY_TIMEOUT_MAX;
|
||||
}
|
||||
}
|
||||
#endif /* SNTP_RETRY_TIMEOUT_EXP */
|
||||
|
Loading…
Reference in New Issue
Block a user