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

@@ -150,8 +150,11 @@ static void disconnect_handler(void* arg, esp_event_base_t event_base,
{
httpd_handle_t* server = (httpd_handle_t*) arg;
if (*server) {
if (stop_webserver(*server) == ESP_OK)
if (stop_webserver(*server) == ESP_OK) {
*server = NULL;
} else {
ESP_LOGE(TAG, "Failed to stop https server");
}
}
}