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

Commit 227c416d authored by Myles Watson's avatar Myles Watson Committed by Automerger Merge Worker
Browse files

Merge "Ignore redundant |BTIF_AV_SUSPEND_STREAM_REQ_EVT|" into main am: 8e48acf2

parents 3a449b0d 8e48acf2
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2591,6 +2591,12 @@ bool BtifAvStateMachine::StateStarted::ProcessEvent(uint32_t event,
               ADDRESS_TO_LOGGABLE_CSTR(peer_.PeerAddress()),
               BtifAvEvent::EventName(event).c_str(),
               peer_.FlagsToString().c_str());

      // There is a pending LocalSuspend already, ignore.
      if (peer_.CheckFlags(BtifAvPeer::kFlagLocalSuspendPending)) {
        break;
      }

      // Set pending flag to ensure the BTIF task is not trying to restart
      // the stream while suspend is in progress.
      peer_.SetFlags(BtifAvPeer::kFlagLocalSuspendPending);