Skip to content

Commit c3e9e22

Browse files
authored
Update RequestAuthorization.php
1 parent ea41627 commit c3e9e22

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Jobs/RequestAuthorization.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ public function handle()
7676
if ($this->sync) {
7777
ChallengeAuthorization::dispatchSync($httpChallenge, $this->tries, $this->retryAfter, $this->retryList);
7878
} else {
79-
ChallengeAuthorization::dispatch($httpChallenge, $this->tries, $this->retryAfter, $this->retryList);
79+
if (!empty($this->chained)) {
80+
$this->prependToChain(new ChallengeAuthorization($httpChallenge, $this->tries, $this->retryAfter, $this->retryList));
81+
} else {
82+
ChallengeAuthorization::dispatch($httpChallenge, $this->tries, $this->retryAfter, $this->retryList);
83+
}
8084
}
8185
}
8286

0 commit comments

Comments
 (0)