Added a check to see if the session was refreshed successfully
This commit is contained in:
parent
8466701590
commit
c53404ba94
1 changed files with 8 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue