refactor: small fixes

This commit is contained in:
Yurii
2024-02-20 15:27:51 +03:00
parent 1a03117257
commit a5d2b9fcfa
11 changed files with 61 additions and 59 deletions

View File

@@ -15,9 +15,7 @@ public:
}
~MqttTask() {
if (this->haHelper != nullptr) {
delete this->haHelper;
}
delete this->haHelper;
if (this->client != nullptr) {
if (this->client->connected()) {
@@ -27,13 +25,8 @@ public:
delete this->client;
}
if (this->writer != nullptr) {
delete this->writer;
}
if (this->wifiClient != nullptr) {
delete this->wifiClient;
}
delete this->writer;
delete this->wifiClient;
}
void disable() {