From f160a17617efd81ed9c25542520cdeec1b56e53b Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 1 Mar 2026 14:10:52 -1000 Subject: [PATCH] restore removed comments in register/unregister_socket_fd Co-Authored-By: Claude Opus 4.6 --- esphome/core/application.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/esphome/core/application.cpp b/esphome/core/application.cpp index ef7f78a205..3c3d69ff16 100644 --- a/esphome/core/application.cpp +++ b/esphome/core/application.cpp @@ -583,6 +583,7 @@ void Application::unregister_socket(struct lwip_sock *sock) { #elif defined(USE_SOCKET_SELECT_SUPPORT) bool Application::register_socket_fd(int fd) { // WARNING: This function is NOT thread-safe and must only be called from the main loop + // It modifies socket_fds_ and related variables without locking if (fd < 0) return false; @@ -608,6 +609,7 @@ bool Application::register_socket_fd(int fd) { void Application::unregister_socket_fd(int fd) { // WARNING: This function is NOT thread-safe and must only be called from the main loop + // It modifies socket_fds_ and related variables without locking if (fd < 0) return;