Added a check to see if the session was refreshed successfully

This commit is contained in:
Carson McManus 2016-12-25 18:58:08 -05:00
parent 8466701590
commit c53404ba94

View file

@ -475,7 +475,14 @@ namespace SteamGuard
static void processConfirmations(SteamGuardAccount account)
{
if (Verbose) Console.WriteLine("Refeshing Session...");
account.RefreshSession();
if (account.RefreshSession())
{
if (Verbose) Console.WriteLine("Session refreshed");
}
else
{
Console.WriteLine("Failed to refresh session");
}
Console.WriteLine("Retrieving trade confirmations...");
var trades = account.FetchConfirmations();
var tradeActions = new TradeAction[trades.Length];