From: erickson Date: Fri, 17 Jun 2005 14:31:00 +0000 (+0000) Subject: if no router, change the connecting resource X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=82dc6e827639ad1930b91760e712a381f8e5f5e4;p=opensrf%2Fbjwebb.git if no router, change the connecting resource git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@345 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/perlmods/OpenSRF/Transport/SlimJabber/Inbound.pm b/src/perlmods/OpenSRF/Transport/SlimJabber/Inbound.pm index ccacafa..11385d5 100644 --- a/src/perlmods/OpenSRF/Transport/SlimJabber/Inbound.pm +++ b/src/perlmods/OpenSRF/Transport/SlimJabber/Inbound.pm @@ -41,6 +41,10 @@ This service should be loaded at system startup. my $host = $domains->[0]; # XXX for now... my $resource = $app . '_listener_at_' . $conf->env->hostname; + my $router_name = $conf->bootstrap->router_name; + # no router, only one listener running.. + if(!$router_name) { $resource = $app; } + OpenSRF::Utils::Logger->transport("Inbound as $username, $password, $resource, $host, $port\n", INTERNAL ); my $self = __PACKAGE__->SUPER::new(