1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-05 11:23:47 +01:00

more api loop reductions

This commit is contained in:
J. Nick Koston
2025-06-23 10:52:34 +02:00
parent 23cc0c7f39
commit 8ec998ff30
2 changed files with 2 additions and 2 deletions

View File

@@ -136,7 +136,7 @@ void APIServer::schedule_reboot_timeout_() {
void APIServer::loop() {
// Accept new clients only if the socket exists and has incoming connections
if (this->socket_ && this->socket_->ready()) {
if (this->socket_->ready()) {
while (true) {
struct sockaddr_storage source_addr;
socklen_t addr_len = sizeof(source_addr);