Skip to content

Commit

Permalink
Fix Retry exception handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
drsdre committed Apr 6, 2017
1 parent ff1c028 commit c83813e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ protected function executeRequest() {

} catch ( Exception $e ) {
// Retry if exception can be retried
if ( $e->getCode() == Exception::RETRY && $this->retries < $this->max_retry_attempts ) {
if ( $e->getHandleCode() == Exception::HANDLE_AS_RETRY && $this->retries < $this->max_retry_attempts ) {
// Retry the request
$request_success = false;
$this->retries ++;
Expand Down

0 comments on commit c83813e

Please sign in to comment.