Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b62445cd authored by Chienyuan Huang's avatar Chienyuan Huang Committed by Gerrit Code Review
Browse files

Merge "CS: Fix null pointer dereference when stop_distance_measurement" into main

parents 759542eb af93b43c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -366,7 +366,7 @@ struct DistanceMeasurementManager::impl : bluetooth::hal::RangingHalCallback {
      case METHOD_CS: {
        if (cs_trackers_.find(connection_handle) == cs_trackers_.end()) {
          log::warn("Can't find CS tracker for {}", address);
        } else {
        } else if (cs_trackers_[connection_handle].measurement_ongoing) {
          cs_trackers_[connection_handle].repeating_alarm->Cancel();
          send_le_cs_procedure_enable(connection_handle, Enable::DISABLED);
        }