mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +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:
parent
d5d6a3b023
commit
7d9abbb605
@ -265,8 +265,6 @@ void ArduinoOTAClass::_runUpdate() {
|
|||||||
delay(100);
|
delay(100);
|
||||||
|
|
||||||
Update.setMD5(_md5.c_str());
|
Update.setMD5(_md5.c_str());
|
||||||
WiFiUDP::stopAll();
|
|
||||||
WiFiClient::stopAll();
|
|
||||||
|
|
||||||
if (_start_callback) {
|
if (_start_callback) {
|
||||||
_start_callback();
|
_start_callback();
|
||||||
|
@ -89,7 +89,6 @@ void ESP8266HTTPUpdateServerTemplate<ServerType>::setup(ESP8266WebServerTemplate
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
WiFiUDP::stopAll();
|
|
||||||
if (_serial_output)
|
if (_serial_output)
|
||||||
Serial.printf("Update: %s\n", upload.filename.c_str());
|
Serial.printf("Update: %s\n", upload.filename.c_str());
|
||||||
if (upload.name == "filesystem") {
|
if (upload.name == "filesystem") {
|
||||||
|
@ -224,7 +224,6 @@ void ESP8266WiFiGenericClass::_eventCallback(void* arg)
|
|||||||
|
|
||||||
if(event->event == EVENT_STAMODE_DISCONNECTED) {
|
if(event->event == EVENT_STAMODE_DISCONNECTED) {
|
||||||
DEBUG_WIFI("STA disconnect: %d\n", event->event_info.disconnected.reason);
|
DEBUG_WIFI("STA disconnect: %d\n", event->event_info.disconnected.reason);
|
||||||
WiFiClient::stopAll();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event->event == EVENT_STAMODE_AUTHMODE_CHANGE) {
|
if (event->event == EVENT_STAMODE_AUTHMODE_CHANGE) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user