Skip to content

Commit f0b7434

Browse files
committed
added delay on the DNS loop. Play nice!
1 parent 6929683 commit f0b7434

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

wifi_manager/main/dns_server.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ void dns_server(void *pvParameters) {
160160
ESP_LOGE(TAG, "UDP sendto failed: %d", err);
161161
}
162162
}
163+
164+
vTaskDelay( (TickType_t)10); /* allows the freeRTOS scheduler to take over if needed. DNS daemon should not be taxing on the system */
163165
}
164166
close(socket_fd);
165167

0 commit comments

Comments
 (0)