Fix GetTradeHoldDuration() sometimes failing

Forgot to ensure the session is active
This commit is contained in:
JustArchi
2016-06-29 09:11:59 +02:00
parent e6509ae1a3
commit e3030dccdb

View File

@@ -436,6 +436,10 @@ namespace ArchiSteamFarm {
return null;
}
if (!await RefreshSessionIfNeeded().ConfigureAwait(false)) {
return null;
}
string request = SteamCommunityURL + "/tradeoffer/" + tradeID + "?l=english";
HtmlDocument htmlDocument = await WebBrowser.UrlGetToHtmlDocumentRetry(request).ConfigureAwait(false);