Commit 11d083b9 authored by justcoding121's avatar justcoding121

dispose correctly

parent f7c2490f
...@@ -44,7 +44,10 @@ namespace Titanium.Web.Proxy.Network ...@@ -44,7 +44,10 @@ namespace Titanium.Web.Proxy.Network
public void Dispose() public void Dispose()
{ {
Stream.Close();
Stream.Dispose(); Stream.Dispose();
TcpClient.Client.Close();
TcpClient.Close();
TcpClient.Client.Dispose(); TcpClient.Client.Dispose();
} }
} }
......
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