Stickers: hacky workaround for bug in MTJobManager

This commit is contained in:
NotAKidoS 2024-08-25 21:20:27 -05:00
parent d635b45db2
commit d1102bb1e5
6 changed files with 18 additions and 6 deletions

View file

@ -50,6 +50,7 @@ public partial class StickerSystem
{
try
{
Thread.CurrentThread.IsBackground = false; // working around bug in MTJobManager
if (!TryLoadImage(imageName, slotIndex, out string errorMessage))
throw new Exception(errorMessage);
}
@ -61,6 +62,7 @@ public partial class StickerSystem
finally
{
_isLoadingImage[slotIndex] = false;
Thread.CurrentThread.IsBackground = true; // working around bug in MTJobManager
}
});
}