running in no-router/single-service mode was checking a config value that is not...
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 22 Dec 2008 16:12:39 +0000 (16:12 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 22 Dec 2008 16:12:39 +0000 (16:12 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1557 9efc2488-bf62-4759-914b-345cdb29e865

src/perl/lib/OpenSRF/Transport/SlimJabber/Inbound.pm

index 9194927..3f08653 100644 (file)
@@ -41,9 +41,9 @@ This service should be loaded at system startup.
                        my $host                        = $domain;
                        my $resource    = $app . '_listener_at_' . $conf->env->hostname;
 
                        my $host                        = $domain;
                        my $resource    = $app . '_listener_at_' . $conf->env->hostname;
 
-                       my $router_name = $conf->bootstrap->router_name;
-                       # no router, only one listener running..
-                       if(!$router_name) { 
+            my $no_router = 0; # make this a config entry if we want to use it
+                       if($no_router) { 
+                           # no router, only one listener running..
                                $username = "router";
                                $resource = $app; 
                        }
                                $username = "router";
                                $resource = $app; 
                        }