From c83813e8e9e9db125942b186ac6cb4c7596cbde0 Mon Sep 17 00:00:00 2001 From: Drsdre Date: Thu, 6 Apr 2017 22:40:07 +0200 Subject: [PATCH] Fix Retry exception handling. --- Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client.php b/Client.php index 753b7aa..9e64097 100644 --- a/Client.php +++ b/Client.php @@ -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 ++;