From c53404ba94de85d8ed67f4b537f78c828f6a29d5 Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Sun, 25 Dec 2016 18:58:08 -0500 Subject: [PATCH] Added a check to see if the session was refreshed successfully --- Program.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index 17c2269..d527b74 100644 --- a/Program.cs +++ b/Program.cs @@ -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];