From 0104de7c22d1370c836703b683c9cc8112275da5 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 14 Dec 2020 10:05:02 +0100 Subject: [PATCH] Bug 26742: Remove die from connect The change was not advertised and it needs to be done on a separate bug report (+ test coverage) Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart --- Koha/BackgroundJob.pm | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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; } -- 2.39.5