Don't pull from request queue unless the next item also was already up for voting.

This commit is contained in:
Kevin Whitaker
2017-02-23 18:37:32 -05:00
parent df0e044a96
commit f75419cfbd

View File

@@ -323,7 +323,7 @@ void GroovePlayerMgr::grooveEventLoop()
else
{
//Pick request song if there are any.
if(requestQueue.size() > 0)
if(requestQueue.size() > 0 && requestQueue.front().first.trackFingerprint == currentVoteBatch.back().trackFingerprint) //Assumes back is track 3.
{
winner = requestQueue.front().first;
requestQueue.pop_front();