Merge branch 'bugfix/close_esp_socket_when_rm_netif' into 'refactor'

Close esp_socket when close netif

See merge request sdk/ESP8266_RTOS_SDK!91
This commit is contained in:
Wu Jian Gang
2018-04-26 17:17:38 +08:00

View File

@ -292,6 +292,7 @@ void tcpip_adapter_stop(uint8_t netif_index)
}
TCPIP_ATAPTER_LOG("stop netif[%d]\n", netif_index);
esp_close((int)esp_netif[netif_index]->state);
netif_remove(esp_netif[netif_index]);
os_free(esp_netif[netif_index]);
esp_netif[netif_index] = NULL;