This commit is contained in:
JustArchi
2018-08-19 19:24:04 +02:00
parent d7f976fe97
commit 1b8e029281

View File

@@ -1002,7 +1002,7 @@ namespace ArchiSteamFarm {
// Do the magic
Bot.ArchiLogger.LogGenericInfo(string.Format(Strings.LoggingIn, ISteamUserAuth));
KeyValue response = null;
KeyValue response;
using (dynamic iSteamUserAuth = WebAPI.GetAsyncInterface(ISteamUserAuth)) {
iSteamUserAuth.Timeout = WebBrowser.Timeout;
@@ -1020,8 +1020,10 @@ namespace ArchiSteamFarm {
).ConfigureAwait(false);
} catch (TaskCanceledException e) {
Bot.ArchiLogger.LogGenericDebuggingException(e);
return false;
} catch (Exception e) {
Bot.ArchiLogger.LogGenericWarningException(e);
return false;
}
}