From 703a78bba492322224f1454f1d61937cd1d82c2e Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 22 Dec 2008 16:12:39 +0000 Subject: [PATCH] running in no-router/single-service mode was checking a config value that is not required to exist. if we still want to support running in no-router mode, let's make it an explicit confuration option git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1557 9efc2488-bf62-4759-914b-345cdb29e865 --- src/perl/lib/OpenSRF/Transport/SlimJabber/Inbound.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/perl/lib/OpenSRF/Transport/SlimJabber/Inbound.pm b/src/perl/lib/OpenSRF/Transport/SlimJabber/Inbound.pm index 9194927..3f08653 100644 --- a/src/perl/lib/OpenSRF/Transport/SlimJabber/Inbound.pm +++ b/src/perl/lib/OpenSRF/Transport/SlimJabber/Inbound.pm @@ -41,9 +41,9 @@ This service should be loaded at system startup. 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; } -- 2.11.0