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

Commit fec81555 authored by Chienyuan's avatar Chienyuan
Browse files

PAST: Get sync from address when sync established

Bug: 232756394
Tag: #gd-refactor
Test: gd/cet/run --sl4a_sl4a
Test: bluetooth_test_gd_unit
Change-Id: I021912896661a2eeb041f2c4526db67736ecbb72
parent dab680a3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -268,7 +268,7 @@ class PeriodicSyncManager {

    auto address_with_type = AddressWithType(event_view.GetAdvertiserAddress(), event_view.GetAdvertiserAddressType());

    auto periodic_sync = GetSyncFromAddressWithTypeAndSid(address_with_type, event_view.GetAdvertisingSid());
    auto periodic_sync = GetSyncFromAddressAndSid(address_with_type.GetAddress(), event_view.GetAdvertisingSid());
    if (periodic_sync == periodic_syncs_.end()) {
      LOG_WARN("[PSync]: Invalid address and sid for sync established");
      if (event_view.GetStatus() == ErrorCode::SUCCESS) {