[Opensrf-commits] r1558 - branches/rel_1_0/src/perl/lib/OpenSRF/Transport/SlimJabber

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Dec 22 11:13:11 EST 2008


Author: erickson
Date: 2008-12-22 11:13:09 -0500 (Mon, 22 Dec 2008)
New Revision: 1558

Modified:
   branches/rel_1_0/src/perl/lib/OpenSRF/Transport/SlimJabber/Inbound.pm
Log:
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

Modified: branches/rel_1_0/src/perl/lib/OpenSRF/Transport/SlimJabber/Inbound.pm
===================================================================
--- branches/rel_1_0/src/perl/lib/OpenSRF/Transport/SlimJabber/Inbound.pm	2008-12-22 16:12:39 UTC (rev 1557)
+++ branches/rel_1_0/src/perl/lib/OpenSRF/Transport/SlimJabber/Inbound.pm	2008-12-22 16:13:09 UTC (rev 1558)
@@ -41,9 +41,9 @@
 			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; 
 			}



More information about the opensrf-commits mailing list