Commit 20ef5aec authored by justcoding121's avatar justcoding121

Update ProxyTestController.cs

parent dfc16968
...@@ -411,7 +411,7 @@ namespace Titanium.Web.Proxy.Examples.Basic ...@@ -411,7 +411,7 @@ namespace Titanium.Web.Proxy.Examples.Basic
consoleMessageQueue.Enqueue(new Tuple<ConsoleColor?, string>(consoleColor, message)); consoleMessageQueue.Enqueue(new Tuple<ConsoleColor?, string>(consoleColor, message));
} }
private void listenToConsole() private async Task listenToConsole()
{ {
while (!cancellationToken.IsCancellationRequested) while (!cancellationToken.IsCancellationRequested)
{ {
...@@ -432,6 +432,9 @@ namespace Titanium.Web.Proxy.Examples.Basic ...@@ -432,6 +432,9 @@ namespace Titanium.Web.Proxy.Examples.Basic
Console.WriteLine(message); Console.WriteLine(message);
} }
} }
//reduce CPU usage
await Task.Delay(10);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment