Skip to content

Commit

Permalink
fix(ota): Make sure that ArduinoOTA.end() is called in the destructor (
Browse files Browse the repository at this point in the history
  • Loading branch information
me-no-dev authored Feb 4, 2025
1 parent 8b31d1e commit 6a11276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/ArduinoOTA/src/ArduinoOTA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ArduinoOTAClass::ArduinoOTAClass()
_start_callback(NULL), _end_callback(NULL), _error_callback(NULL), _progress_callback(NULL) {}

ArduinoOTAClass::~ArduinoOTAClass() {
_udp_ota.stop();
end();
}

ArduinoOTAClass &ArduinoOTAClass::onStart(THandlerFunction fn) {
Expand Down

0 comments on commit 6a11276

Please sign in to comment.