diff --git a/TGServerService/Compiler.cs b/TGServerService/Compiler.cs index 63fbe5b8d8..d52cbda5ae 100644 --- a/TGServerService/Compiler.cs +++ b/TGServerService/Compiler.cs @@ -403,7 +403,8 @@ namespace TGServerService DM.Start(); DM.BeginOutputReadLine(); - DM.WaitForExit(); + while (!DM.HasExited) + DM.WaitForExit(100); DM.CancelOutputRead(); lock (CompilerLock)