diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverAssembler.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverAssembler.cs index 215c09a75..bbc6e7d63 100644 --- a/Assets/Mirror/Tests/Editor/Weaver/WeaverAssembler.cs +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverAssembler.cs @@ -156,19 +156,7 @@ public static void Clear() DeleteOutputOnClear = false; } - // build synchronously public static void Build() - { - BuildAssembly(true); - } - - // build asynchronously - this isn't currently used - public static void BuildAsync() - { - BuildAssembly(false); - } - - static void BuildAssembly(bool wait) { AssemblyBuilder assemblyBuilder = new AssemblyBuilder(OutputDirectory + OutputFile, SourceFiles.ToArray()); assemblyBuilder.additionalReferences = ReferenceAssemblies.ToArray(); @@ -206,13 +194,10 @@ static void BuildAssembly(bool wait) return; } - if (wait) + while (assemblyBuilder.status != AssemblyBuilderStatus.Finished) { - while (assemblyBuilder.status != AssemblyBuilderStatus.Finished) - { - System.Threading.Thread.Sleep(10); - } - } + System.Threading.Thread.Sleep(10); + } } } }