From e00a131160b44bbd63ef29f230c6adc26c74d2ac Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Tue, 6 Dec 2016 20:29:12 +0100 Subject: [PATCH] Fix bug #49778: sntp_stop does not cancel all timers Patch by Ari Suutari --- src/apps/sntp/sntp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/apps/sntp/sntp.c b/src/apps/sntp/sntp.c index ac69650a..71b2abed 100644 --- a/src/apps/sntp/sntp.c +++ b/src/apps/sntp/sntp.c @@ -573,6 +573,7 @@ sntp_stop(void) { if (sntp_pcb != NULL) { sys_untimeout(sntp_request, NULL); + sys_untimeout(sntp_try_next_server, NULL); udp_remove(sntp_pcb); sntp_pcb = NULL; }