Merge "app_queue: Update realtime queuemembers after wait_a_bit(), not before" into 16

This commit is contained in:
Joshua Colp 2018-09-07 04:48:40 -05:00 committed by Gerrit Code Review
commit 6344cceed2
1 changed files with 3 additions and 2 deletions

View File

@ -8444,14 +8444,15 @@ check_turns:
break;
}
/* If using dynamic realtime members, we should regenerate the member list for this queue */
update_realtime_members(qe.parent);
/* OK, we didn't get anybody; wait for 'retry' seconds; may get a digit to exit with */
res = wait_a_bit(&qe);
if (res) {
goto stop;
}
/* If using dynamic realtime members, we should regenerate the member list for this queue */
update_realtime_members(qe.parent);
/* Since this is a priority queue and
* it is not sure that we are still at the head
* of the queue, go and check for our turn again.