From f0b74349bf4bd71d7ea0800c394154a1a57430d0 Mon Sep 17 00:00:00 2001 From: tonyp7 Date: Tue, 12 Mar 2019 09:43:15 +0800 Subject: [PATCH] added delay on the DNS loop. Play nice! --- wifi_manager/main/dns_server.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wifi_manager/main/dns_server.c b/wifi_manager/main/dns_server.c index 355ef77a..7a966bf4 100644 --- a/wifi_manager/main/dns_server.c +++ b/wifi_manager/main/dns_server.c @@ -160,6 +160,8 @@ void dns_server(void *pvParameters) { ESP_LOGE(TAG, "UDP sendto failed: %d", err); } } + + vTaskDelay( (TickType_t)10); /* allows the freeRTOS scheduler to take over if needed. DNS daemon should not be taxing on the system */ } close(socket_fd);