]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 515606: Fix the arguments of Bugzilla::Job::Mailer->retry_delay--it's actually...
authormkanat%bugzilla.org <>
Thu, 10 Sep 2009 23:47:27 +0000 (23:47 +0000)
committermkanat%bugzilla.org <>
Thu, 10 Sep 2009 23:47:27 +0000 (23:47 +0000)
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat

Bugzilla/Job/Mailer.pm

index 24b589d801efc8d049b5b45328286c86256d98b4..09c3873268e5f9ff411701a5cbe0b0cb51bccc2e 100644 (file)
@@ -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];
     }