Add extra check after waiting in OnDisconnected()

If for some reason this callback gets executed twice, we don't want to issue second connect request in any case
This commit is contained in:
JustArchi
2016-08-09 04:04:22 +02:00
parent 00b4c28843
commit 5f1342ae26

View File

@@ -1642,6 +1642,10 @@ namespace ArchiSteamFarm {
await LimitLoginRequestsAsync().ConfigureAwait(false);
}
if (!KeepRunning || SteamClient.IsConnected) {
return;
}
SteamClient.Connect();
}