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