Skip to content

Commit cc6da05

Browse files
committed
WiFiClient - assignment shouldn't stop connection
there may be other copy of WiFiClient working with that connection. let shared_ptr stop the connection when it is not refered anymore.
1 parent f6e12eb commit cc6da05

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

libraries/WiFi/src/WiFiClient.cpp

-9
Original file line numberDiff line numberDiff line change
@@ -197,15 +197,6 @@ WiFiClient::~WiFiClient()
197197
stop();
198198
}
199199

200-
WiFiClient & WiFiClient::operator=(const WiFiClient &other)
201-
{
202-
stop();
203-
clientSocketHandle = other.clientSocketHandle;
204-
_rxBuffer = other._rxBuffer;
205-
_connected = other._connected;
206-
return *this;
207-
}
208-
209200
void WiFiClient::stop()
210201
{
211202
clientSocketHandle = NULL;

libraries/WiFi/src/WiFiClient.h

-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ class WiFiClient : public ESPLwIPClient
7171
{
7272
return connected();
7373
}
74-
WiFiClient & operator=(const WiFiClient &other);
7574
bool operator==(const bool value)
7675
{
7776
return bool() == value;

0 commit comments

Comments
 (0)