mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Closes #135
This commit is contained in:
@@ -803,7 +803,7 @@ namespace ArchiSteamFarm {
|
||||
|
||||
private void HandleCallbacks() {
|
||||
TimeSpan timeSpan = TimeSpan.FromMilliseconds(CallbackSleep);
|
||||
while (KeepRunning) {
|
||||
while (KeepRunning || SteamClient.IsConnected) {
|
||||
CallbackManager.RunWaitCallbacks(timeSpan);
|
||||
}
|
||||
}
|
||||
@@ -920,6 +920,12 @@ namespace ArchiSteamFarm {
|
||||
|
||||
Logging.LogGenericInfo("Connected to Steam!", BotName);
|
||||
|
||||
if (!KeepRunning) {
|
||||
Logging.LogGenericInfo("Disconnecting...", BotName);
|
||||
SteamClient.Disconnect();
|
||||
return;
|
||||
}
|
||||
|
||||
if (File.Exists(LoginKeyFile)) {
|
||||
try {
|
||||
LoginKey = File.ReadAllText(LoginKeyFile);
|
||||
|
||||
Reference in New Issue
Block a user