All pastes #922363 Raw Edit

Stuff

public text v1 · immutable
#922363 ·published 2008-02-28 19:24 UTC
rendered paste body
--- apps/app_queue.c    (revision 104782)
+++ apps/app_queue.c    (working copy)
@@ -2393,6 +2393,10 @@
                        struct ao2_iterator mem_iter = ao2_iterator_init(qe->parent->members, 0);
                        while ((cur = ao2_iterator_next(&mem_iter))) {
                                switch (cur->status) {
+                               case AST_DEVICE_INUSE:
+                                       if (!qe->parent->ringinuse)
+                                               break;
+                                       /* else fall through */
                                case AST_DEVICE_NOT_INUSE:
                                case AST_DEVICE_UNKNOWN:
                                        if (!cur->paused)