This commit is contained in:
J. Nick Koston
2026-02-23 21:10:38 -06:00
parent 86642ab9d7
commit 3e0cdc2404
4 changed files with 10 additions and 25 deletions

View File

@@ -611,10 +611,7 @@ void Application::unregister_socket_fd(int fd) {
if (i < this->socket_fds_.size() - 1)
this->socket_fds_[i] = this->socket_fds_.back();
this->socket_fds_.pop_back();
#ifdef USE_ESP32
// Unhook the socket's netconn callback
esphome_lwip_unhook_socket(fd);
#else
#ifndef USE_ESP32
this->socket_fds_changed_ = true;
// Only recalculate max_fd if we removed the current max
if (fd == this->max_fd_) {