From a29f209b46aebfd898b8c6809fabf3bf7818edd9 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 1 Nov 2025 14:53:34 -0500 Subject: [PATCH] fix ble latency --- esphome/components/esp32_ble/ble.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/esphome/components/esp32_ble/ble.cpp b/esphome/components/esp32_ble/ble.cpp index d73a54a973..bdc0837a47 100644 --- a/esphome/components/esp32_ble/ble.cpp +++ b/esphome/components/esp32_ble/ble.cpp @@ -704,9 +704,8 @@ void ESP32BLE::setup_event_notification_() { } void ESP32BLE::cleanup_event_notification_() { - // Guard against multiple calls (reentrant safety for ble.disable automation) if (this->notify_fd_ < 0) { - return; // Already cleaned up + return; } App.unregister_socket_fd(this->notify_fd_);