examples: Common connect component: Unregister shutdown handler on disconnection

To be able to connect smoothly after disconnecting, we have to unregister all handlers including shutdown handler on disconnection
pull/5919/head
David Cermak 2020-07-29 10:18:34 +02:00
rodzic bcfa36db8f
commit 52a7721bf7
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -207,6 +207,7 @@ esp_err_t example_disconnect(void)
vSemaphoreDelete(s_semph_get_ip_addrs);
s_semph_get_ip_addrs = NULL;
stop();
ESP_ERROR_CHECK(esp_unregister_shutdown_handler(&stop));
return ESP_OK;
}