mirror of
https://github.com/esphome/esphome.git
synced 2025-08-09 11:57:46 +00:00
remove cruft
This commit is contained in:
parent
7fe8cdaa34
commit
c655c4e106
@ -46,13 +46,6 @@ void OTARequestHandler::schedule_ota_reboot_() {
|
|||||||
ESP_LOGI(TAG, "OTA update successful!");
|
ESP_LOGI(TAG, "OTA update successful!");
|
||||||
this->parent_->set_timeout(100, [this]() {
|
this->parent_->set_timeout(100, [this]() {
|
||||||
ESP_LOGI(TAG, "Performing OTA reboot now");
|
ESP_LOGI(TAG, "Performing OTA reboot now");
|
||||||
#ifdef USE_ESP_IDF
|
|
||||||
// Stop the web server before rebooting to avoid "uri handler execution failed" warnings
|
|
||||||
if (this->parent_->get_server()) {
|
|
||||||
ESP_LOGD(TAG, "Stopping web server before reboot");
|
|
||||||
this->parent_->get_server()->end();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
App.safe_reboot();
|
App.safe_reboot();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user