mirror of
https://github.com/Tichau/FileConverter.git
synced 2026-11-23 19:12:12 +01:00
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:
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;
|
||||
|
||||
Reference in new issue
Block a user