From: Raphaƫl Gertz Date: Tue, 19 Sep 2017 11:38:18 +0000 (+0200) Subject: Fix polling of pending certificate X-Git-Tag: 2.0.3~16 X-Git-Url: https://git.rapsys.eu/acme/commitdiff_plain/fdf40983214210b3b757ddb340212194d0116237?ds=inline;hp=baefa26a7b8ea0eb362851dceb3cf3cfdffc86e8 Fix polling of pending certificate --- diff --git a/Acme.pm b/Acme.pm index e928010..acffe8d 100644 --- a/Acme.pm +++ b/Acme.pm @@ -602,10 +602,10 @@ sub authorize { } @{$self->{domains}}; # Init max run - my $remaining = 10; + my $remaining = 300; # Poll pending - while (--$remaining >= 0 and scalar map { $_->{status} eq 'valid' ? 1 : (); } values %{$self->{challenges}}) { + while (--$remaining >= 0 and scalar map { $_->{status} eq 'pending' ? 1 : (); } values %{$self->{challenges}}) { # Sleep sleep(1); # Poll remaining pending