mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-15 22:10:30 +00:00
Misc
This commit is contained in:
@@ -60,6 +60,10 @@ internal static class MobileAuthenticatorWebHandler {
|
||||
{ "steamid", bot.SteamID }
|
||||
};
|
||||
|
||||
using WebAPI.AsyncInterface twoFactorService = bot.SteamConfiguration.GetAsyncWebAPIInterface(TwoFactorService);
|
||||
|
||||
twoFactorService.Timeout = bot.ArchiWebHandler.WebBrowser.Timeout;
|
||||
|
||||
CTwoFactor_AddAuthenticator_Response? response = null;
|
||||
|
||||
for (byte i = 0; (i < WebBrowser.MaxTries) && (response == null); i++) {
|
||||
@@ -67,10 +71,6 @@ internal static class MobileAuthenticatorWebHandler {
|
||||
await Task.Delay(ArchiWebHandler.WebLimiterDelay).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
using WebAPI.AsyncInterface twoFactorService = bot.SteamConfiguration.GetAsyncWebAPIInterface(TwoFactorService);
|
||||
|
||||
twoFactorService.Timeout = bot.ArchiWebHandler.WebBrowser.Timeout;
|
||||
|
||||
try {
|
||||
// TODO: Move to CallProtobufAsync<TResponse, TRequest> when we update to SK2 3.2.0+ <https://github.com/SteamRE/SteamKit/pull/1537>
|
||||
response = await ArchiWebHandler.WebLimitRequest(
|
||||
@@ -119,6 +119,10 @@ internal static class MobileAuthenticatorWebHandler {
|
||||
{ "steamid", bot.SteamID }
|
||||
};
|
||||
|
||||
using WebAPI.AsyncInterface twoFactorService = bot.SteamConfiguration.GetAsyncWebAPIInterface(TwoFactorService);
|
||||
|
||||
twoFactorService.Timeout = bot.ArchiWebHandler.WebBrowser.Timeout;
|
||||
|
||||
CTwoFactor_FinalizeAddAuthenticator_Response? response = null;
|
||||
|
||||
for (byte i = 0; (i < WebBrowser.MaxTries) && (response == null); i++) {
|
||||
@@ -126,10 +130,6 @@ internal static class MobileAuthenticatorWebHandler {
|
||||
await Task.Delay(ArchiWebHandler.WebLimiterDelay).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
using WebAPI.AsyncInterface twoFactorService = bot.SteamConfiguration.GetAsyncWebAPIInterface(TwoFactorService);
|
||||
|
||||
twoFactorService.Timeout = bot.ArchiWebHandler.WebBrowser.Timeout;
|
||||
|
||||
try {
|
||||
// TODO: Move to CallProtobufAsync<TResponse, TRequest> when we update to SK2 3.2.0+ <https://github.com/SteamRE/SteamKit/pull/1537>
|
||||
response = await ArchiWebHandler.WebLimitRequest(
|
||||
|
||||
Reference in New Issue
Block a user