Skip to content

Commit 1f3690b

Browse files
committed
do not call tcp/udp ::stopAll() when it is not required to to so
1 parent dc6b15e commit 1f3690b

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

Diff for: 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") {

Diff for: 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)