From 4e8dfe1a231cc54e458542eb694212b0791d849f Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Thu, 11 Jan 2024 21:19:05 -0500 Subject: [PATCH] [skip ci] rename --- playlet-lib/src/source/services/HttpClient.bs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/playlet-lib/src/source/services/HttpClient.bs b/playlet-lib/src/source/services/HttpClient.bs index 55cde6c6..b93db165 100644 --- a/playlet-lib/src/source/services/HttpClient.bs +++ b/playlet-lib/src/source/services/HttpClient.bs @@ -374,7 +374,7 @@ namespace HttpClient response = invalid response = m.AwaitInternal() - if response.IsSuccess() or response.TimedOut() or response.IsCancelled() + if response.IsSuccess() or response.IsTimedOut() or response.IsCancelled() return response end if triesLeft -= 1 @@ -413,7 +413,7 @@ namespace HttpClient sleep(backoffMs) response = m.AwaitInternal() - if response.IsSuccess() or response.TimedOut() or response.IsCancelled() or response.StatusCode() < 500 + if response.IsSuccess() or response.IsTimedOut() or response.IsCancelled() or response.StatusCode() < 500 return response end if triesLeft -= 1 @@ -554,7 +554,7 @@ namespace HttpClient return m.request._cache <> invalid end function - function TimedOut() as boolean + function IsTimedOut() as boolean return not m.IsCached() and m.event = invalid end function @@ -620,7 +620,7 @@ namespace HttpClient else if m.request._sent <> true m._errorMessage = "Request not sent." - else if m.TimedOut() + else if m.IsTimedOut() m._errorMessage = "Request timed out." else if m.IsCancelled() m._errorMessage = "Request cancelled."