Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
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.
  • Loading branch information
JAndrassy committed Dec 20, 2023
commit cc6da052c21312588e5e3502cdc88dcd435a11fa
9 changes: 0 additions & 9 deletions libraries/WiFi/src/WiFiClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,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;
Expand Down
1 change: 0 additions & 1 deletion libraries/WiFi/src/WiFiClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ class WiFiClient : public ESPLwIPClient
{
return connected();
}
WiFiClient & operator=(const WiFiClient &other);
bool operator==(const bool value)
{
return bool() == value;
Expand Down