Commit f5298575 authored by Honfika's avatar Honfika

less exceptions

parent 5ec93000
......@@ -385,11 +385,6 @@ namespace Titanium.Web.Proxy
sslStream?.Dispose();
clientStream.Dispose();
if (!cancellationTokenSource.IsCancellationRequested)
{
cancellationTokenSource.Cancel();
}
}
}
}
......
......@@ -99,7 +99,7 @@ namespace Titanium.Web.Proxy.Network.Tcp
// This way we can push tcp Time_Wait to server side when possible.
await Task.Delay(1000);
proxyServer.UpdateServerConnectionCount(false);
Stream.BaseStream?.Dispose();
Stream.Dispose();
TcpClient.CloseSocket();
});
......
......@@ -152,11 +152,6 @@ namespace Titanium.Web.Proxy
{
sslStream?.Dispose();
clientStream.Dispose();
if (!cancellationTokenSource.IsCancellationRequested)
{
cancellationTokenSource.Cancel();
}
}
}
}
......
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