diff --git a/src/az_iot/c-utility/pal/lwip/sntp_lwip.c b/src/az_iot/c-utility/pal/lwip/sntp_lwip.c index 57ec43c..0546532 100644 --- a/src/az_iot/c-utility/pal/lwip/sntp_lwip.c +++ b/src/az_iot/c-utility/pal/lwip/sntp_lwip.c @@ -36,6 +36,7 @@ int SNTP_SetServerName(const char* serverName) int SNTP_Init() { LogInfo("Initializing SNTP"); + SNTP_Deinit(); sntp_setoperatingmode(SNTP_OPMODE_POLL); sntp_init(); time_t ts = 0;