Commit 453feabf authored by Stéphane Graziano's avatar Stéphane Graziano

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

Previous 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,11 +494,12 @@ namespace Titanium.Web.Proxy.Network.Tcp
|| connection.LastAccess < cutOff)
{
disposalBag.Add(connection);
continue;
}
queue.Enqueue(connection);
break;
else
{
queue.Enqueue(connection);
break;
}
}
}
}
......
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