Skip to content

Commit 29995eb

Browse files
JAndrassyme-no-dev
andauthored
WiFiClient - assignment shouldn't stop connection (#9029)
there may be other copy of WiFiClient working with that connection. let shared_ptr stop the connection when it is not refered anymore. Co-authored-by: Me No Dev <[email protected]>
1 parent 5063cdd commit 29995eb

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
@@ -202,15 +202,6 @@ WiFiClient::~WiFiClient()
202202
stop();
203203
}
204204

205-
WiFiClient & WiFiClient::operator=(const WiFiClient &other)
206-
{
207-
stop();
208-
clientSocketHandle = other.clientSocketHandle;
209-
_rxBuffer = other._rxBuffer;
210-
_connected = other._connected;
211-
return *this;
212-
}
213-
214205
void WiFiClient::stop()
215206
{
216207
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)