mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
LwIpIntfDev.end() - check _started to prevent crash (#9173)
This commit is contained in:
parent
07feacec46
commit
27272de623
@ -349,9 +349,12 @@ boolean LwipIntfDev<RawDev>::begin(const uint8_t* macAddress, const uint16_t mtu
|
|||||||
template<class RawDev>
|
template<class RawDev>
|
||||||
void LwipIntfDev<RawDev>::end()
|
void LwipIntfDev<RawDev>::end()
|
||||||
{
|
{
|
||||||
netif_remove(&_netif);
|
if (_started)
|
||||||
_started = false;
|
{
|
||||||
RawDev::end();
|
netif_remove(&_netif);
|
||||||
|
_started = false;
|
||||||
|
RawDev::end();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class RawDev>
|
template<class RawDev>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user