mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-14 00:47:25 +00:00
Handle EResult.Fail in inventory request
This commit is contained in:
parent
477cc8ba74
commit
54e76cf559
2 changed files with 2 additions and 0 deletions
|
@ -239,6 +239,7 @@ public sealed class ArchiHandler : ClientMsgHandler {
|
|||
ArchiLogger.LogGenericDebug(string.Format(CultureInfo.CurrentCulture, Strings.WarningFailedWithError, serviceMethodResponse.Result));
|
||||
|
||||
continue;
|
||||
case EResult.Fail:
|
||||
case EResult.NoMatch:
|
||||
// Expected failures that we're not going to retry
|
||||
throw new TimeoutException(string.Format(CultureInfo.CurrentCulture, Strings.WarningFailedWithError, serviceMethodResponse.Result));
|
||||
|
|
|
@ -308,6 +308,7 @@ public sealed class ArchiWebHandler : IDisposable {
|
|||
case EResult.Timeout:
|
||||
// Expected failures that we should be able to retry
|
||||
continue;
|
||||
case EResult.Fail:
|
||||
case EResult.NoMatch:
|
||||
// Expected failures that we're not going to retry
|
||||
throw new HttpRequestException(string.Format(CultureInfo.CurrentCulture, Strings.WarningFailedWithError, response.Content.ErrorText), null, response.StatusCode);
|
||||
|
|
Loading…
Reference in a new issue