mirror of
https://github.com/espressif/esp-idf.git
synced 2026-08-18 06:35:35 +03:00
Updated coding style and added error logs
This commit is contained in:
@@ -77,8 +77,9 @@ static void stop_httpd_transport(protocomm_t *pc)
|
||||
{
|
||||
mdns_service_remove("_esp_local_ctrl", "_tcp");
|
||||
protocomm_httpd_stop(pc);
|
||||
if (httpd_ssl_stop(server_handle) == ESP_OK)
|
||||
if (httpd_ssl_stop(server_handle) == ESP_OK) {
|
||||
server_handle = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
static esp_err_t copy_httpd_config(esp_local_ctrl_transport_config_t *dest_config, const esp_local_ctrl_transport_config_t *src_config)
|
||||
|
||||
@@ -296,8 +296,10 @@ esp_err_t protocomm_httpd_stop(protocomm_t *pc)
|
||||
if (!pc_ext_httpd_handle_provided) {
|
||||
httpd_handle_t *server_handle = (httpd_handle_t *) pc_httpd->priv;
|
||||
esp_err_t ret = httpd_stop(*server_handle);
|
||||
if (ret != ESP_OK)
|
||||
if (ret != ESP_OK) {
|
||||
ESP_LOGE(TAG, "Failed to stop http server");
|
||||
return ret;
|
||||
}
|
||||
free(server_handle);
|
||||
} else {
|
||||
pc_ext_httpd_handle_provided = false;
|
||||
|
||||
Reference in New Issue
Block a user