Commit 5d461f5b authored by Jehonathan Thomas's avatar Jehonathan Thomas Committed by GitHub

Merge pull request #237 from honfika/develop

move Dispose calls to finally blocks
parents ff41363f 32a55f2c
......@@ -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