fix adding semi transient resources, fix unloading not unloading mods due to queue

This commit is contained in:
Stanley Dimant
2022-09-06 16:15:08 +02:00
parent 99df88bb3b
commit 1e9161aed5
3 changed files with 107 additions and 72 deletions

View File

@@ -137,6 +137,13 @@ namespace MareSynchronos.Managers
{
Logger.Verbose("Disposing " + nameof(IpcManager));
int totalSleepTime = 0;
while (actionQueue.Count > 0 && totalSleepTime < 2000)
{
System.Threading.Thread.Sleep(16);
totalSleepTime += 16;
}
_dalamudUtil.FrameworkUpdate -= HandleActionQueue;
actionQueue.Clear();