mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
app_queue: Update realtime queuemembers after wait_a_bit(), not before
This ensures the most up-to-date information is used for the next call attempt. ASTERISK-28032 Change-Id: I02fc17c6ffb50bb60ea97c2d2e6023e8061815ce
This commit is contained in:
@@ -8444,14 +8444,15 @@ check_turns:
|
|||||||
break;
|
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 */
|
/* OK, we didn't get anybody; wait for 'retry' seconds; may get a digit to exit with */
|
||||||
res = wait_a_bit(&qe);
|
res = wait_a_bit(&qe);
|
||||||
if (res) {
|
if (res) {
|
||||||
goto stop;
|
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
|
/* Since this is a priority queue and
|
||||||
* it is not sure that we are still at the head
|
* it is not sure that we are still at the head
|
||||||
* of the queue, go and check for our turn again.
|
* of the queue, go and check for our turn again.
|
||||||
|
Reference in New Issue
Block a user