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

Commit 7b8cdb46 authored by Jack He's avatar Jack He Committed by Automerger Merge Worker
Browse files

Merge "PAST: Get sync from address when sync established" am: 14cc6db2 am: 8e4e1052

parents 99664fa9 8e4e1052
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) {