Add a grep to avoid attempting to subscribe to "/queue/", which
[catagits/Catalyst-Engine-STOMP.git] / lib / Catalyst / Engine / Stomp.pm
index b94a504..2752b5e 100644 (file)
@@ -72,7 +72,8 @@ sub run {
         die 'No Engine::Stomp configuration found'
              unless ref $app->config->{'Engine::Stomp'} eq 'HASH';
 
-        my @queues = map { $app->controller($_)->action_namespace } $app->controllers;
+        my @queues = grep { length $_ }
+                    map  { $app->controller($_)->action_namespace } $app->controllers;
 
         # connect up
         my %template = %{$app->config->{'Engine::Stomp'}};