Skip to content

Commit

Permalink
改一下
Browse files Browse the repository at this point in the history
  • Loading branch information
Megghy committed Jan 11, 2022
1 parent 3bf9460 commit 8be7b6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MultiSEngine/Core/Adapter/ClientAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public ClientAdapter(ClientData client, Socket connection) : base(client, connec
protected override void OnRecieveLoopError(Exception ex)
{
base.OnRecieveLoopError(ex);
if(ex.Source != "TrProtocol")
if(ex is EndOfStreamException or IOException or SocketException)
Client.Disconnect();
}
public override bool ListenningClient => true;
Expand Down

0 comments on commit 8be7b6c

Please sign in to comment.