From 32c25bdd1c1062e9af04cbcb28fa2bf75d6952a0 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Thu, 20 Nov 2025 15:53:15 +0000 Subject: [PATCH] Bug 41271: Dont run Net::Server::PreFork->run on 'require' or 'use' By using 'unless caller' we ensure the class is not executed when Pod::Coverage->new does 'require C4/SIP/SIPServer.pm Ensure no regressions are added: prove t/db_dependent/SIP/* koha-sip --restart kohadev koha-sip --status kohadev Signed-off-by: Jonathan Druart --- C4/SIP/SIPServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/SIP/SIPServer.pm b/C4/SIP/SIPServer.pm index dff3af28b18..4cccd670af9 100644 --- a/C4/SIP/SIPServer.pm +++ b/C4/SIP/SIPServer.pm @@ -91,7 +91,7 @@ push @params, 'group=' . $>; # # This is the main event. -__PACKAGE__->run(@params); +__PACKAGE__->run(@params) unless caller; # # Server -- 2.43.0