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

Commit 19f88e9f authored by Mark Fasheh's avatar Mark Fasheh
Browse files

Avoid races between nextMessage() and stackHasMessages()

Always check if the stack is draining before we exit stackHasMessages().
 - This will ensure that next has put any pending messages into the
   priority queues before we search them.

Bug: 396569494
Flag: EXEMPT - bugfix
Test: atest MessageQueueTest
Change-Id: If3259e13060baae4125a4977519a7f08390f79cb
parent 318fcc18
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment