fix: start ota is now consistent across command sources
Этот коммит содержится в:
@@ -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;
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user