mirror of
https://github.com/esphome/esphome.git
synced 2025-09-26 23:22:21 +01:00
Reduce API component memory usage with conditional compilation (#9262)
This commit is contained in:
@@ -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