diff --git a/components/wifi_provisioning/src/manager.c b/components/wifi_provisioning/src/manager.c index d75aa60325..aa8caab054 100644 --- a/components/wifi_provisioning/src/manager.c +++ b/components/wifi_provisioning/src/manager.c @@ -1349,6 +1349,7 @@ void wifi_prov_mgr_deinit(void) ESP_LOGD(TAG, "Manager already de-initialized"); RELEASE_LOCK(prov_ctx_lock); vSemaphoreDelete(prov_ctx_lock); + prov_ctx_lock = NULL; return; } @@ -1401,6 +1402,7 @@ void wifi_prov_mgr_deinit(void) } vSemaphoreDelete(prov_ctx_lock); + prov_ctx_lock = NULL; } esp_err_t wifi_prov_mgr_start_provisioning(wifi_prov_security_t security, const void *wifi_prov_sec_params,