From 142235c355ec60d23bc077946322935614368f09 Mon Sep 17 00:00:00 2001 From: Rick Watson Date: Fri, 7 Jun 2019 19:47:59 +0100 Subject: [PATCH] Fix issue with ota service not restarting properly - mdns not being shut down without calling end(). --- src/OTASettingsService.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/OTASettingsService.cpp b/src/OTASettingsService.cpp index f891448..a74d34f 100644 --- a/src/OTASettingsService.cpp +++ b/src/OTASettingsService.cpp @@ -39,6 +39,7 @@ void OTASettingsService::writeToJsonObject(JsonObject& root) { void OTASettingsService::configureArduinoOTA() { if (_arduinoOTA){ + _arduinoOTA->end(); delete _arduinoOTA; _arduinoOTA = nullptr; }