........
Merged revisions 342017 from http://svn.asterisk.org/svn/asterisk/branches/10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@342018
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
return -1;
}
+ /* We've made it here, so it looks like we're doing operations on all queues. */
+ ao2_lock(queues);
+
/* Mark all queues as dead for the moment if we're reloading queues.
* For clarity, we could just be reloading members, in which case we don't want to mess
* with the other queue parameters at all*/
if (queue_reload) {
ao2_callback(queues, OBJ_NODATA | OBJ_MULTIPLE | OBJ_UNLINK | OBJ_NOLOCK, kill_dead_queues, (char *) queuename);
}
+ ao2_unlock(queues);
return 0;
}