diff --git a/libraries/WiFi/src/WiFiClient.cpp b/libraries/WiFi/src/WiFiClient.cpp index 3913208ba0b..e422b63673d 100644 --- a/libraries/WiFi/src/WiFiClient.cpp +++ b/libraries/WiFi/src/WiFiClient.cpp @@ -196,8 +196,8 @@ WiFiClient & WiFiClient::operator=(const WiFiClient &other) void WiFiClient::stop() { - clientSocketHandle.reset(); // clientSocketHandle = NULL; - _rxBuffer.reset(); // _rxBuffer = NULL; + clientSocketHandle = NULL; + _rxBuffer = NULL; _connected = false; }