We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7da7e22 commit 3d15743Copy full SHA for 3d15743
libraries/WiFi/src/WiFiClient.cpp
@@ -127,7 +127,6 @@ void arduino::WiFiClient::flush() {
127
void arduino::WiFiClient::stop() {
128
if (sock != NULL) {
129
sock->close();
130
- //delete[] sock;
131
sock = NULL;
132
}
133
libraries/WiFi/src/WiFiSSLClient.h
@@ -37,6 +37,13 @@ class WiFiSSLClient : public arduino::WiFiClient {
37
int connect(const char* host, uint16_t port) {
38
return connectSSL(host, port);
39
40
+ void stop() {
41
+ if (sock != NULL) {
42
+ sock->close();
43
+ delete ((TLSSocket*)sock);
44
+ sock = NULL;
45
+ }
46
47
48
private:
49
int setRootCA() {
0 commit comments