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

Don't clear authentication options on a ::stop (#5386)

Many objects now expect a WiFiClient* object to be passed to them and
potentially re-used multiple times (HTTPClient, others).  Clearing the
authentication options on a ::stop means they can never reconnect.

Remove the option clearing in ::stop

Fixes #5379
This commit is contained in:
Earle F. Philhower, III 2018-11-28 16:12:01 -08:00 committed by GitHub
parent dc5e352676
commit e7d3cf62b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -189,7 +189,6 @@ bool WiFiClientSecure::stop(unsigned int maxWaitMs) {
if (_session) { if (_session) {
br_ssl_engine_get_session_parameters(_eng, _session->getSession()); br_ssl_engine_get_session_parameters(_eng, _session->getSession());
} }
_clearAuthenticationSettings();
} }
_freeSSL(); _freeSSL();
return ret; return ret;