mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'contrib/github_pr_12459' into 'master'
manager: fixing unwinding protocom endpoints, on prov_stop. (GitHub PR) Closes IDFGH-11307 See merge request espressif/esp-idf!26742
This commit is contained in:
commit
69e89c4e95
@ -558,6 +558,16 @@ static void prov_stop_and_notify(bool is_async)
|
||||
vTaskDelay(cleanup_delay / portTICK_PERIOD_MS);
|
||||
}
|
||||
|
||||
protocomm_remove_endpoint(prov_ctx->pc, "prov-ctrl");
|
||||
|
||||
protocomm_remove_endpoint(prov_ctx->pc, "prov-scan");
|
||||
|
||||
protocomm_remove_endpoint(prov_ctx->pc, "prov-config");
|
||||
|
||||
protocomm_unset_security(prov_ctx->pc, "prov-session");
|
||||
|
||||
protocomm_unset_version(prov_ctx->pc, "proto-ver");
|
||||
|
||||
/* All the extra application added endpoints are also
|
||||
* removed automatically when prov_stop is called */
|
||||
prov_ctx->mgr_config.scheme.prov_stop(prov_ctx->pc);
|
||||
|
Loading…
Reference in New Issue
Block a user