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."