mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-07-15 08:32:42 +08:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user