From 4ddb0e4c65f8f099f4d23aca1e7cf2b288596026 Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Tue, 4 Jul 2017 14:44:25 -0400 Subject: [PATCH] Fixes being unable to cancel compiles --- TGServerService/Compiler.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)