This commit is contained in:
JustArchi
2015-11-01 02:08:41 +01:00
parent 164240641b
commit 19e72c93c1
2 changed files with 3 additions and 3 deletions

View File

@@ -222,8 +222,8 @@ namespace ArchiSteamFarm {
}
await CardsFarmer.StopFarming().ConfigureAwait(false);
SteamClient.Disconnect();
IsRunning = false;
SteamClient.Disconnect();
}
private async Task<bool> Shutdown(string botNameToShutdown) {
@@ -359,7 +359,7 @@ namespace ArchiSteamFarm {
return;
}
if (callback.UserInitiated) {
if (!IsRunning) {
return;
}

View File

@@ -47,7 +47,7 @@ namespace ArchiSteamFarm {
private static readonly ManualResetEvent ShutdownResetEvent = new ManualResetEvent(false);
private static readonly Assembly Assembly = Assembly.GetExecutingAssembly();
private static readonly string ExecutablePath = Assembly.Location;
private static readonly AssemblyName AssemblyName = Assembly.GetName();
private static readonly AssemblyName AssemblyName = Assembly.GetName();
private static readonly string ExeName = AssemblyName.Name + ".exe";
private static readonly string Version = AssemblyName.Version.ToString();