From c3dee3d30704d36a0ad20a306b6ae8e3d6695ed9 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 23 Feb 2026 21:21:43 -0600 Subject: [PATCH] comments --- esphome/core/lwip_fast_select.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/esphome/core/lwip_fast_select.c b/esphome/core/lwip_fast_select.c index 66e1f7c2851..87baf449cb1 100644 --- a/esphome/core/lwip_fast_select.c +++ b/esphome/core/lwip_fast_select.c @@ -136,11 +136,6 @@ void esphome_lwip_hook_socket(int fd) { s_original_callback = sock->conn->callback; } - // Verify assumption: if we already have the original, this socket should have the same one. - // If this fires, LwIP changed to use per-socket callbacks and we need a per-fd array. - LWIP_ASSERT("all sockets must share the same event_callback", - sock->conn->callback == s_original_callback || sock->conn->callback == esphome_socket_event_callback); - // Replace with our wrapper. Atomic on ESP32 (32-bit aligned pointer write). // TCP/IP thread sees either old or new pointer — both are valid. sock->conn->callback = esphome_socket_event_callback;