Update Bot.cs

This commit is contained in:
JustArchi
2020-04-24 16:50:58 +02:00
parent b1a54fe9db
commit 05b697879d

View File

@@ -1286,8 +1286,8 @@ namespace ArchiSteamFarm {
bool sent = false;
for (byte j = 0; (j < WebBrowser.MaxTries) && !sent && IsConnectedAndLoggedOn; j++) {
// TODO: Determine if this dirty workaround fixes "ghost notification" bug
// Theory: Perhaps Steam is confused when dealing with more than 1 message per second from the same user, check if this helps
// We add a one-second delay here to avoid Steam screwup in form of a ghost notification
// The exact cause is unknown, but the theory is that Steam is confused when dealing with more than 1 message per second from the same user
await Task.Delay(1000).ConfigureAwait(false);
EResult result = await ArchiHandler.SendMessage(steamID, messagePart).ConfigureAwait(false);