diff --git a/Koha/BackgroundJob.pm b/Koha/BackgroundJob.pm index 1a25c32721..09139bdbdd 100644 --- a/Koha/BackgroundJob.pm +++ b/Koha/BackgroundJob.pm @@ -77,13 +77,7 @@ sub connect { $credentials->{host} = $config->{vhost} if $config->{vhost}; } my $stomp = Net::Stomp->new( { hostname => $hostname, port => $port } ); - my $frame = $stomp->connect( $credentials ); - unless ($frame && $frame->command eq 'CONNECTED'){ - if ($frame){ - warn $frame->as_string; - } - die "Cannot connect to message broker"; - } + $stomp->connect( $credentials ); return $stomp; }