Reduce API component memory usage with conditional compilation (#9262)
This commit is contained in:
1 parent
7f8dd4b254
commit
6a354d7c94
7 files changed
+338
-17
No files matched your search
@@ -184,7 +184,9 @@ void APIServer::loop() {
|
||||
}
|
||||
|
||||
// Rare case: handle disconnection
|
||||
#ifdef USE_API_CLIENT_DISCONNECTED_TRIGGER
|
||||
this->client_disconnected_trigger_->trigger(client->client_info_, client->client_peername_);
|
||||
#endif
|
||||
ESP_LOGV(TAG, "Remove connection %s", client->client_info_.c_str());
|
||||
|
||||
// Swap with the last element and pop (avoids expensive vector shifts)
|
||||
|
||||
Reference in new issue
Block a user