Commit cc339f80 authored by Honfika's avatar Honfika

move Dispose all to finally blocks

parent 282634a9
......@@ -22,7 +22,7 @@ namespace Titanium.Web.Proxy.Helpers
private static readonly ConcurrentQueue<byte[]> buffers
= new ConcurrentQueue<byte[]>();
private volatile bool disposed = false;
private volatile bool disposed;
internal CustomBinaryReader(CustomBufferedStream stream, int bufferSize)
{
......
......@@ -383,8 +383,7 @@ namespace Titanium.Web.Proxy
#if !DEBUG
firefoxProxySettingsManager.AddFirefox();
#endif
Console.WriteLine("Set endpoint at Ip {0} and port: {1} as System HTTPS Proxy",
endPoint.IpAddress, endPoint.Port);
Console.WriteLine("Set endpoint at Ip {0} and port: {1} as System HTTPS Proxy", endPoint.IpAddress, endPoint.Port);
}
/// <summary>
......
This diff is collapsed.
......@@ -53,8 +53,8 @@ namespace Titanium.Web.Proxy
}
var connection = await GetServerConnection(args);
var result = await HandleHttpSessionRequestInternal(null, args, true);
return result;
var disposed = await HandleHttpSessionRequestInternal(null, args, true);
return disposed;
}
args.WebSession.Response.ResponseLocked = true;
......
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