Skip to content

Commit 6a11276

Browse files
authored
fix(ota): Make sure that ArduinoOTA.end() is called in the destructor (#10932)
1 parent 8b31d1e commit 6a11276

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ArduinoOTA/src/ArduinoOTA.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ArduinoOTAClass::ArduinoOTAClass()
2929
_start_callback(NULL), _end_callback(NULL), _error_callback(NULL), _progress_callback(NULL) {}
3030

3131
ArduinoOTAClass::~ArduinoOTAClass() {
32-
_udp_ota.stop();
32+
end();
3333
}
3434

3535
ArduinoOTAClass &ArduinoOTAClass::onStart(THandlerFunction fn) {

0 commit comments

Comments
 (0)