diff --git a/Dalamud/Game/Framework.cs b/Dalamud/Game/Framework.cs index 52b9ef020..810251de2 100644 --- a/Dalamud/Game/Framework.cs +++ b/Dalamud/Game/Framework.cs @@ -5,6 +5,7 @@ using System.Linq; using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; + using Dalamud.Game.Gui; using Dalamud.Game.Gui.Toast; using Dalamud.Game.Libc; @@ -200,7 +201,6 @@ namespace Dalamud.Game /// /// Run given function in upcoming Framework.Tick call. /// - /// Return type. /// Function to call. /// Wait for given timespan before calling this function. /// Count given number of Framework.Tick calls before calling this function. This takes precedence over delay parameter. diff --git a/Dalamud/Interface/Internal/Windows/DataWindow.cs b/Dalamud/Interface/Internal/Windows/DataWindow.cs index 98a5bb63f..d4f100915 100644 --- a/Dalamud/Interface/Internal/Windows/DataWindow.cs +++ b/Dalamud/Interface/Internal/Windows/DataWindow.cs @@ -1469,7 +1469,7 @@ namespace Dalamud.Interface.Internal.Windows for (var i = 0; i < 100; i++) { token.ThrowIfCancellationRequested(); - Thread.Sleep(1); + await Task.Delay(1); } }); }