summaryrefslogtreecommitdiff
path: root/lib/stompqueuemanager.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@status.net>2010-01-15 11:13:06 -0800
committerBrion Vibber <brion@status.net>2010-01-15 11:13:06 -0800
commit598072468c9fdb07df2cda9da207f123b14566ae (patch)
tree9846456771d776a0ec29ccc68ea8325dd44968a0 /lib/stompqueuemanager.php
parent963260d2628cdaccd330c47761ebbf972193f15e (diff)
--xmpp-only hack for queuedaemon.php to run separate queue daemon with only xmpp threads
Diffstat (limited to 'lib/stompqueuemanager.php')
-rw-r--r--lib/stompqueuemanager.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/stompqueuemanager.php b/lib/stompqueuemanager.php
index a7d735d1c..00590fdb6 100644
--- a/lib/stompqueuemanager.php
+++ b/lib/stompqueuemanager.php
@@ -104,7 +104,12 @@ class StompQueueManager extends QueueManager
*/
function getQueues()
{
- return array_keys($this->handlers[common_config('site', 'server')]);
+ $site = common_config('site', 'server');
+ if (empty($this->handlers[$site])) {
+ return array();
+ } else {
+ return array_keys($this->handlers[$site]);
+ }
}
/**