Skip to content

Commit 4ab5ad8

Browse files
d-a-vhasenradball
authored andcommitted
do not call tcp/udp ::stopAll() when it is not required to do so (esp8266#8598)
* do not call tcp/udp ::stopAll() when it is not required to to so * remove stopAll also from ArduinoOTA
1 parent 5a0cbf4 commit 4ab5ad8

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

libraries/ArduinoOTA/ArduinoOTA.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,6 @@ void ArduinoOTAClass::_runUpdate() {
265265
delay(100);
266266

267267
Update.setMD5(_md5.c_str());
268-
WiFiUDP::stopAll();
269-
WiFiClient::stopAll();
270268

271269
if (_start_callback) {
272270
_start_callback();

libraries/ESP8266HTTPUpdateServer/src/ESP8266HTTPUpdateServer-impl.h

-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ void ESP8266HTTPUpdateServerTemplate<ServerType>::setup(ESP8266WebServerTemplate
8989
return;
9090
}
9191

92-
WiFiUDP::stopAll();
9392
if (_serial_output)
9493
Serial.printf("Update: %s\n", upload.filename.c_str());
9594
if (upload.name == "filesystem") {

libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ void ESP8266WiFiGenericClass::_eventCallback(void* arg)
224224

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

230229
if (event->event == EVENT_STAMODE_AUTHMODE_CHANGE) {

0 commit comments

Comments
 (0)