Commit 7597ecc0 authored by justcoding121's avatar justcoding121

always close inside request handler to avoid releasing twice

parent 9b4afaef
...@@ -247,6 +247,7 @@ namespace Titanium.Web.Proxy ...@@ -247,6 +247,7 @@ namespace Titanium.Web.Proxy
if (args.WebSession.ServerConnection == null) if (args.WebSession.ServerConnection == null)
{ {
closeServerConnection = true;
return; return;
} }
......
...@@ -64,7 +64,6 @@ namespace Titanium.Web.Proxy ...@@ -64,7 +64,6 @@ namespace Titanium.Web.Proxy
} }
else else
{ {
await tcpConnectionFactory.Release(args.WebSession.ServerConnection, true);
args.WebSession.ServerConnection = null; args.WebSession.ServerConnection = null;
} }
......
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