From 7621c5ca6598d6f950fb7a5348acfab25f7db62e Mon Sep 17 00:00:00 2001 From: Justin Foell Date: Sat, 21 Sep 2019 21:43:52 -0500 Subject: [PATCH] Don't retry unless using refresh auth --- includes/WPStrava/API.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/WPStrava/API.php b/includes/WPStrava/API.php index ad701e0..fefb220 100755 --- a/includes/WPStrava/API.php +++ b/includes/WPStrava/API.php @@ -112,8 +112,8 @@ class WPStrava_API { $auth = WPStrava::get_instance()->auth; if ( $auth instanceof WPStrava_AuthRefresh ) { $auth->auth_refresh(); + return $this->get( $uri, $args ); } - return $this->get( $uri, $args ); } else { $retry = true; }