diff --git a/BotLooter/Looting/LootClient.cs b/BotLooter/Looting/LootClient.cs index 546c0ea..5c24537 100644 --- a/BotLooter/Looting/LootClient.cs +++ b/BotLooter/Looting/LootClient.cs @@ -26,7 +26,13 @@ public LootClient(SteamAccountCredentials credentials, SteamUserSession steamSes _steamWeb = steamWeb; _sendTradeOfferPolicy = Policy - .HandleResult>(res => res.StatusCode == HttpStatusCode.InternalServerError) + .HandleResult>(res => { + if (res.StatusCode != HttpStatusCode.InternalServerError) { + return false; + } + + return res.Content?.ToLower().Contains("please try again later") ?? false; + }) .WaitAndRetryAsync(3, _ => TimeSpan.FromSeconds(10)); }