Skip to content

Commit

Permalink
added delay on the DNS loop. Play nice!
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyp7 committed Mar 12, 2019
1 parent 6929683 commit f0b7434
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wifi_manager/main/dns_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f0b7434

Please sign in to comment.