if no router, change the connecting resource
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 17 Jun 2005 14:31:00 +0000 (14:31 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 17 Jun 2005 14:31:00 +0000 (14:31 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@345 9efc2488-bf62-4759-914b-345cdb29e865

src/perlmods/OpenSRF/Transport/SlimJabber/Inbound.pm

index ccacafa..11385d5 100644 (file)
@@ -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(