From 0d61689da186142bd2a0cd268dcc803ef83f8bbc Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Sat, 22 Oct 2016 11:08:29 +0200 Subject: [PATCH] Wait for challenge to be written to disk before continuing This also makes exceptions visible now. This commit resolves #37. --- src/Commands/Issue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/Issue.php b/src/Commands/Issue.php index f7c5b7c..86ea143 100644 --- a/src/Commands/Issue.php +++ b/src/Commands/Issue.php @@ -153,7 +153,7 @@ class Issue implements Command { $challengeStore = new ChallengeStore($path); try { - $challengeStore->put($token, $payload, isset($user) ? $user : null); + yield $challengeStore->put($token, $payload, isset($user) ? $user : null); yield $acme->verifyHttp01Challenge($domain, $token, $payload); yield $acme->answerChallenge($challenge->uri, $payload);