diff options
author | Matt Jordan <mjordan@digium.com> | 2015-12-19 10:48:05 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2015-12-19 10:48:05 -0600 |
commit | 7ec9b5b98f6aea20f61185a71052a092b32e0706 (patch) | |
tree | e860507d3b1dd8bc3db1b606acea5d048c274968 | |
parent | e652a786d6a889848e328a7dd141abd767aca1b6 (diff) | |
parent | ae428d846006771c45518301e5987cdbabec6e79 (diff) |
Merge "app_queue: update RT members when the 1st call joins a queue with no agents" into 13
-rw-r--r-- | apps/app_queue.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index 5a8dcd246..45d00939c 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -5191,6 +5191,11 @@ static int is_our_turn(struct queue_ent *qe) res = 0; } + /* Update realtime members if this is the first call and number of avalable members is 0 */ + if (avl == 0 && qe->pos == 1) { + update_realtime_members(qe->parent); + } + return res; } |