Updated coding style and added error logs

This commit is contained in:
Harshit Malpani
2022-05-09 14:57:51 +05:30
committed by BOT
parent e8e63a06e8
commit 2c56c6cad8
7 changed files with 25 additions and 7 deletions

View File

@@ -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)