Commit a8e16d49 authored by justcoding121's avatar justcoding121

remove async

parent c3e40786
...@@ -83,7 +83,7 @@ namespace Titanium.Web.Proxy.Network ...@@ -83,7 +83,7 @@ namespace Titanium.Web.Proxy.Network
if (cachedConnections == null || cachedConnections.Count() <= 2) if (cachedConnections == null || cachedConnections.Count() <= 2)
{ {
await CreateClient(hostname, port, isHttps, version) var task = CreateClient(hostname, port, isHttps, version)
.ContinueWith(async (x) => { if (x.Status == TaskStatus.RanToCompletion) await ReleaseClient(x.Result); }); .ContinueWith(async (x) => { if (x.Status == TaskStatus.RanToCompletion) await ReleaseClient(x.Result); });
} }
......
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