mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-27 03:35:38 +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
07d3b3330d
commit
87d44bbfcd
@ -383,6 +383,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…
x
Reference in New Issue
Block a user