diff --git a/libraries/ArduinoOTA/src/ArduinoOTA.cpp b/libraries/ArduinoOTA/src/ArduinoOTA.cpp index 25164203..2d99808b 100644 --- a/libraries/ArduinoOTA/src/ArduinoOTA.cpp +++ b/libraries/ArduinoOTA/src/ArduinoOTA.cpp @@ -370,6 +370,9 @@ void ArduinoOTAClass::end() { } void ArduinoOTAClass::handle() { + if (!_initialized) { + return; + } if (_state == OTA_RUNUPDATE) { _runUpdate(); _state = OTA_IDLE;