From: mkanat%bugzilla.org <> Date: Thu, 10 Sep 2009 23:47:27 +0000 (+0000) Subject: Bug 515606: Fix the arguments of Bugzilla::Job::Mailer->retry_delay--it's actually... X-Git-Tag: bugzilla-3.4.2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5df0d23d4ba0a44118d11d373b932758f2c1600;p=thirdparty%2Fbugzilla.git 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 --- diff --git a/Bugzilla/Job/Mailer.pm b/Bugzilla/Job/Mailer.pm index 24b589d801..09c3873268 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]; }