Commit 1fcd6838 authored by Stéphane Graziano's avatar Stéphane Graziano

Preivous code with "continue" generates a memory leak on 'connection' for an...

Preivous code with "continue" generates a memory leak on 'connection' for an unknown reason. In any case, this code is easier to read.
parent 146152ee
...@@ -494,14 +494,15 @@ namespace Titanium.Web.Proxy.Network.Tcp ...@@ -494,14 +494,15 @@ namespace Titanium.Web.Proxy.Network.Tcp
|| connection.LastAccess < cutOff) || connection.LastAccess < cutOff)
{ {
disposalBag.Add(connection); disposalBag.Add(connection);
continue;
} }
else
{
queue.Enqueue(connection); queue.Enqueue(connection);
break; break;
} }
} }
} }
}
try try
{ {
......
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