Skip to content

Commit

Permalink
do not call tcp/udp ::stopAll() when it is not required to do so (#8598)
Browse files Browse the repository at this point in the history
* do not call tcp/udp ::stopAll() when it is not required to to so
* remove stopAll also from ArduinoOTA
  • Loading branch information
d-a-v committed Jun 23, 2022
1 parent d5d6a3b commit 7d9abbb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions libraries/ArduinoOTA/ArduinoOTA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,6 @@ void ArduinoOTAClass::_runUpdate() {
delay(100);

Update.setMD5(_md5.c_str());
WiFiUDP::stopAll();
WiFiClient::stopAll();

if (_start_callback) {
_start_callback();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ void ESP8266HTTPUpdateServerTemplate<ServerType>::setup(ESP8266WebServerTemplate
return;
}

WiFiUDP::stopAll();
if (_serial_output)
Serial.printf("Update: %s\n", upload.filename.c_str());
if (upload.name == "filesystem") {
Expand Down
1 change: 0 additions & 1 deletion libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ void ESP8266WiFiGenericClass::_eventCallback(void* arg)

if(event->event == EVENT_STAMODE_DISCONNECTED) {
DEBUG_WIFI("STA disconnect: %d\n", event->event_info.disconnected.reason);
WiFiClient::stopAll();
}

if (event->event == EVENT_STAMODE_AUTHMODE_CHANGE) {
Expand Down

0 comments on commit 7d9abbb

Please sign in to comment.