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 <me-no-dev@users.noreply.github.com>
This commit is contained in:
parent
5063cdd797
commit
29995eb604
2 changed files with 0 additions and 10 deletions
|
|
@ -202,15 +202,6 @@ WiFiClient::~WiFiClient()
|
|||
stop();
|
||||
}
|
||||
|
||||
WiFiClient & WiFiClient::operator=(const WiFiClient &other)
|
||||
{
|
||||
stop();
|
||||
clientSocketHandle = other.clientSocketHandle;
|
||||
_rxBuffer = other._rxBuffer;
|
||||
_connected = other._connected;
|
||||
return *this;
|
||||
}
|
||||
|
||||
void WiFiClient::stop()
|
||||
{
|
||||
clientSocketHandle = NULL;
|
||||
|
|
|
|||
|
|
@ -71,7 +71,6 @@ public:
|
|||
{
|
||||
return connected();
|
||||
}
|
||||
WiFiClient & operator=(const WiFiClient &other);
|
||||
bool operator==(const bool value)
|
||||
{
|
||||
return bool() == value;
|
||||
|
|
|
|||
Loading…
Reference in a new issue