1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-22 21:23:07 +03:00

do not call tcp/udp ::stopAll() when it is not required to do so (#8598)

* do not call tcp/udp ::stopAll() when it is not required to to so
* remove stopAll also from ArduinoOTA
This commit is contained in:
david gauchard 2022-06-23 22:14:19 +02:00 committed by GitHub
parent d5d6a3b023
commit 7d9abbb605
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 4 deletions

View File

@ -265,8 +265,6 @@ void ArduinoOTAClass::_runUpdate() {
delay(100);
Update.setMD5(_md5.c_str());
WiFiUDP::stopAll();
WiFiClient::stopAll();
if (_start_callback) {
_start_callback();

View File

@ -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") {

View File

@ -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) {