Merge pull request #46 from ucloud/bugfix_http_close_after_ota_success
fix http close after ota success
This commit is contained in:
commit
afb28b68f6
|
@ -310,6 +310,8 @@ int IOT_OTA_Destroy(void *handle)
|
||||||
void IOT_OTA_Clear(void *handle)
|
void IOT_OTA_Clear(void *handle)
|
||||||
{
|
{
|
||||||
OTA_Struct_t *h_ota = (OTA_Struct_t *)handle;
|
OTA_Struct_t *h_ota = (OTA_Struct_t *)handle;
|
||||||
|
|
||||||
|
ofc_deinit(h_ota->ch_fetch);
|
||||||
memset(h_ota->url, 0, strlen(h_ota->url));
|
memset(h_ota->url, 0, strlen(h_ota->url));
|
||||||
memset(h_ota->download_file_name, 0, strlen(h_ota->download_file_name));
|
memset(h_ota->download_file_name, 0, strlen(h_ota->download_file_name));
|
||||||
memset(h_ota->version, 0, strlen(h_ota->version));
|
memset(h_ota->version, 0, strlen(h_ota->version));
|
||||||
|
|
Loading…
Reference in New Issue