Skip to content

Commit

Permalink
Merge pull request #432 from pennam/wifis3-remove-unused
Browse files Browse the repository at this point in the history
WiFiS3: remove destroy_at_distructor unused flag
  • Loading branch information
pennam authored Feb 18, 2025
2 parents 7e83b8b + f8e01b7 commit c7e6f55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libraries/WiFiS3/src/WiFiClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
using namespace std;

/* -------------------------------------------------------------------------- */
WiFiClient::WiFiClient() : _sock(-1), destroy_at_distructor(true), rx_buffer(nullptr) {
WiFiClient::WiFiClient() : _sock(-1), rx_buffer(nullptr) {
rx_buffer = std::shared_ptr<FifoBuffer<uint8_t,RX_BUFFER_DIM>>(new FifoBuffer<uint8_t,RX_BUFFER_DIM>());
}
/* -------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------- */
WiFiClient::WiFiClient(int s) : _sock(s), destroy_at_distructor(false), rx_buffer(nullptr) {
WiFiClient::WiFiClient(int s) : _sock(s), rx_buffer(nullptr) {
rx_buffer = std::shared_ptr<FifoBuffer<uint8_t,RX_BUFFER_DIM>>(new FifoBuffer<uint8_t,RX_BUFFER_DIM>());
}
/* -------------------------------------------------------------------------- */
Expand Down
1 change: 0 additions & 1 deletion libraries/WiFiS3/src/WiFiClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ class WiFiClient : public Client {

protected:
int _sock;
bool destroy_at_distructor;
int _connectionTimeout = 0;
void getSocket();
static constexpr uint32_t RX_BUFFER_DIM = 1024;
Expand Down

0 comments on commit c7e6f55

Please sign in to comment.