From 05b697879d724f30dc7a005cc80d248031864c15 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Fri, 24 Apr 2020 16:50:58 +0200 Subject: [PATCH] Update Bot.cs --- ArchiSteamFarm/Bot.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArchiSteamFarm/Bot.cs b/ArchiSteamFarm/Bot.cs index 832d756ab..a6526e3bf 100755 --- a/ArchiSteamFarm/Bot.cs +++ b/ArchiSteamFarm/Bot.cs @@ -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);