1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-24 19:42:27 +03:00

Resolved issue #3359 (#6969)

* Resolved issue #3359

Made severing connections optional as per the patch
in the issue.
Also fixed a minor spacing issue.

* Renamed sever to close and added information to readme

Also my editor automatically removed some odd whitespace at the
end of a few lines.
This commit is contained in:
Tim Stableford
2020-02-23 00:30:17 +00:00
committed by GitHub
parent bea64dfa69
commit 16319da63d
3 changed files with 20 additions and 7 deletions

6
libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.cpp Normal file → Executable file
View File

@ -345,8 +345,10 @@ HTTPUpdateResult ESP8266HTTPUpdate::handleUpdate(HTTPClient& http, const String&
WiFiClient * tcp = http.getStreamPtr();
WiFiUDP::stopAll();
WiFiClient::stopAllExcept(tcp);
if (_closeConnectionsOnUpdate) {
WiFiUDP::stopAll();
WiFiClient::stopAllExcept(tcp);
}
delay(100);