fix: start ota is now consistent across command sources

Этот коммит содержится в:
Jared Dohrman
2026-04-23 09:27:48 +10:00
родитель 9085265637
Коммит 4b83142b9e
6 изменённых файлов: 23 добавлений и 8 удалений
+3 -5
Просмотреть файл
@@ -2816,11 +2816,6 @@ esp_err_t WebPanelServer::handleCommand(httpd_req_t* req) {
ctx->self->noteActivity();
memset(reply, 0, kWebReplyBufferSize);
if (strcmp(command, "start ota") == 0) {
// OTA serves its own HTTP listener on port 80, so release the
// web-panel redirect listener first or it will keep owning that port.
ctx->self->stopRedirectServer();
}
ctx->self->_runner->runWebCommand(command, reply, kWebReplyBufferSize);
httpd_resp_set_type(req, "text/plain; charset=utf-8");
httpd_resp_set_hdr(req, "Cache-Control", "no-store");
@@ -2937,6 +2932,9 @@ bool WebPanelServer::start() {
void WebPanelServer::stop() {
}
void WebPanelServer::stopRedirectServer() {
}
bool WebPanelServer::isRunning() const {
return false;
}