mirror of
https://github.com/esphome/esphome.git
synced 2025-11-17 07:15:48 +00:00
fix ble latency
This commit is contained in:
@@ -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_);
|
||||
|
||||
Reference in New Issue
Block a user