Fix multi threading issue

Fix an issue where multiple conversion jobs was created for the same file in some cases.
This commit is contained in:
Tichau committed 2016-09-07 08:07:40 +02:00
1 parent cfa6757312
commit 569dedcf65
1 file changed
+6
@@ -410,6 +410,12 @@ namespace FileConverter
if (jobThread != null)
{
jobThread.Start(conversionJob);
while (conversionJob.State == ConversionJob.ConversionState.Ready)
{
Debug.Log("Wait the launch of the conversion thread before launching any other thread.");
Thread.Sleep(20);
}
}
break;