From 60e678ba4bb3bc46b396ae63d88208e58f1c6861 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Thu, 10 Sep 2009 23:46:21 +0000 Subject: Bug 515606: Fix the arguments of Bugzilla::Job::Mailer->retry_delay--it's actually a class method, not just a subroutine Patch by Max Kanat-Alexander r=LpSolit, a=mkanat --- Bugzilla/Job/Mailer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Job/Mailer.pm b/Bugzilla/Job/Mailer.pm index 24b589d80..09c387326 100644 --- a/Bugzilla/Job/Mailer.pm +++ b/Bugzilla/Job/Mailer.pm @@ -33,7 +33,7 @@ use constant max_retries => 725; # The first few retries happen quickly, but after that we wait an hour for # each retry. sub retry_delay { - my $num_retries = shift; + my ($class, $num_retries) = @_; if ($num_retries < 5) { return (10, 30, 60, 300, 600)[$num_retries]; } -- cgit v1.2.1