Skip to content

Commit 142235c

Browse files
committed
Fix issue with ota service not restarting properly - mdns not being shut down without calling end().
1 parent 4089b32 commit 142235c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/OTASettingsService.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ void OTASettingsService::writeToJsonObject(JsonObject& root) {
3939

4040
void OTASettingsService::configureArduinoOTA() {
4141
if (_arduinoOTA){
42+
_arduinoOTA->end();
4243
delete _arduinoOTA;
4344
_arduinoOTA = nullptr;
4445
}

0 commit comments

Comments
 (0)