Merge branch 'master' of git://github.com/chrisa/catalyst-engine-stomp
t0m [Mon, 13 Jul 2009 20:49:36 +0000 (21:49 +0100)]
lib/Catalyst/Engine/Stomp.pm

index b94a504..3bfb611 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'}};