1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-17 15:26:01 +00:00

fix ble latency

This commit is contained in:
J. Nick Koston
2025-11-01 14:53:34 -05:00
parent 9c5dbd18c2
commit a29f209b46

View File

@@ -704,9 +704,8 @@ void ESP32BLE::setup_event_notification_() {
} }
void ESP32BLE::cleanup_event_notification_() { void ESP32BLE::cleanup_event_notification_() {
// Guard against multiple calls (reentrant safety for ble.disable automation)
if (this->notify_fd_ < 0) { if (this->notify_fd_ < 0) {
return; // Already cleaned up return;
} }
App.unregister_socket_fd(this->notify_fd_); App.unregister_socket_fd(this->notify_fd_);