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

Commit 60a720c6 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Abort fetching items if remote sends us an error"

parents d5cedd37 e5df60ac
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -582,7 +582,10 @@ class AvrcpControllerStateMachine extends StateMachine {
                    // for the list to populate.
                    sendFolderBroadcastAndUpdateNode();

                    if (mCurrInd > mEndInd) {
                    if (mCurrInd > mEndInd || folderList.size() == 0) {
                        // If we have fetched all the elements or if the remotes sends us 0 elements
                        // (which can lead us into a loop since mCurrInd does not proceed) we simply
                        // abort.
                        transitionTo(mConnected);
                    } else {
                        // Fetch the next set of items.