From 9c5dbd18c24b2757826f26ed1994b7f2263d0f8d Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 1 Nov 2025 14:53:12 -0500 Subject: [PATCH] fix ble latency --- esphome/components/esp32_ble/ble.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/esphome/components/esp32_ble/ble.cpp b/esphome/components/esp32_ble/ble.cpp index 8730b894ea..d73a54a973 100644 --- a/esphome/components/esp32_ble/ble.cpp +++ b/esphome/components/esp32_ble/ble.cpp @@ -659,11 +659,6 @@ void ESP32BLE::dump_config() { #ifdef USE_SOCKET_SELECT_SUPPORT void ESP32BLE::setup_event_notification_() { - // Guard against multiple calls (reentrant safety for ble.enable automation) - if (this->notify_fd_ >= 0) { - return; // Already set up - } - // Create UDP socket for event notifications this->notify_fd_ = lwip_socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); if (this->notify_fd_ < 0) {