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:
Juraj Andrássy 2024-01-16 14:18:24 +01:00 committed by GitHub
parent 5063cdd797
commit 29995eb604
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 10 deletions

View file

@ -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;

View file

@ -71,7 +71,6 @@ public:
{
return connected();
}
WiFiClient & operator=(const WiFiClient &other);
bool operator==(const bool value)
{
return bool() == value;