Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid NPE and "multi-deinitialization" of ArduinoOTA (esp8266#9058)
Avoid a null pointer exception when ArduinoOTA.end() is called more than once and thus the UDP socket is already freed. Also avoid unnecessary teardown if the class is not initialized yet (for example, begin() wasn't called yet, or end() is called multiple times).
- Loading branch information