Fix issue with ota service not restarting properly - mdns not being shut down without calling end().

This commit is contained in:
Rick Watson 2019-06-07 19:47:59 +01:00
parent 4089b32941
commit 142235c355

View File

@ -39,6 +39,7 @@ void OTASettingsService::writeToJsonObject(JsonObject& root) {
void OTASettingsService::configureArduinoOTA() {
if (_arduinoOTA){
_arduinoOTA->end();
delete _arduinoOTA;
_arduinoOTA = nullptr;
}