mirror of
https://github.com/FastTunnel/FastTunnel.git
synced 2025-02-08 02:39:29 +08:00
remove after disconnected
This commit is contained in:
parent
6f7f858c7b
commit
f666b9d947
|
@ -71,7 +71,6 @@ public class TunnelClient
|
|||
await utility.ProcessLinesAsync(cancellationToken);
|
||||
}
|
||||
|
||||
|
||||
private async void ProcessLine(ReadOnlySequence<byte> line, CancellationToken cancellationToken)
|
||||
{
|
||||
var cmd = Encoding.UTF8.GetString(line);
|
||||
|
@ -100,6 +99,7 @@ public class TunnelClient
|
|||
{
|
||||
try
|
||||
{
|
||||
fastTunnelServer.ForwardList.TryRemove(item.SSHConfig.RemotePort, out _);
|
||||
item.Listener.Stop();
|
||||
}
|
||||
catch { }
|
||||
|
|
Loading…
Reference in New Issue
Block a user