mirror of
https://github.com/esphome/esphome.git
synced 2025-08-06 18:37:47 +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!");
|
||||
this->parent_->set_timeout(100, [this]() {
|
||||
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();
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user