mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-16 08:25:28 +00:00
Final cleanup of #478
This commit is contained in:
@@ -48,7 +48,6 @@ namespace ArchiSteamFarm {
|
|||||||
|
|
||||||
private static readonly object ConsoleLock = new object();
|
private static readonly object ConsoleLock = new object();
|
||||||
private static readonly ManualResetEventSlim ShutdownResetEvent = new ManualResetEventSlim(false);
|
private static readonly ManualResetEventSlim ShutdownResetEvent = new ManualResetEventSlim(false);
|
||||||
private static readonly Dictionary<KeyValuePair<string, ASF.EUserInputType>, string> UserInputs = new Dictionary<KeyValuePair<string, ASF.EUserInputType>, string>();
|
|
||||||
private static readonly WCF WCF = new WCF();
|
private static readonly WCF WCF = new WCF();
|
||||||
|
|
||||||
private static bool ShutdownSequenceInitialized;
|
private static bool ShutdownSequenceInitialized;
|
||||||
@@ -67,20 +66,12 @@ namespace ArchiSteamFarm {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
string result;
|
|
||||||
|
|
||||||
if (GlobalConfig.Headless || !Runtime.IsUserInteractive) {
|
if (GlobalConfig.Headless || !Runtime.IsUserInteractive) {
|
||||||
KeyValuePair<string, ASF.EUserInputType> userInputKey = new KeyValuePair<string, ASF.EUserInputType>(botName, userInputType);
|
|
||||||
if (UserInputs.ContainsKey(userInputKey)) {
|
|
||||||
result = UserInputs[userInputKey];
|
|
||||||
UserInputs.Remove(userInputKey);
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
ASF.ArchiLogger.LogGenericWarning(Strings.ErrorUserInputRunningInHeadlessMode);
|
ASF.ArchiLogger.LogGenericWarning(Strings.ErrorUserInputRunningInHeadlessMode);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
string result;
|
||||||
lock (ConsoleLock) {
|
lock (ConsoleLock) {
|
||||||
Logging.OnUserInputStart();
|
Logging.OnUserInputStart();
|
||||||
switch (userInputType) {
|
switch (userInputType) {
|
||||||
|
|||||||
Reference in New Issue
Block a user