Skip to content

Commit

Permalink
Unnecessary disconnect, handled by KittenRawSocketProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernthedev committed Dec 5, 2021
1 parent a00b35a commit 54fa268
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions CatCore/Services/Sockets/ClientSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,19 +197,6 @@ private void Close()
return;
}

try
{
if (WorkSocket.Connected)
{
WorkSocket.Disconnect(true);
WorkSocket.Close();
}
}
catch (Exception e)
{
Console.Error.WriteLine(e);
}

_socketStream.Dispose();

_onClose.Invoke(this);
Expand Down

0 comments on commit 54fa268

Please # to comment.