From 54fa268cafd27a35abae9f7cfe55e38b83a97d92 Mon Sep 17 00:00:00 2001 From: FernTheDev <15272073+Fernthedev@users.noreply.github.com> Date: Thu, 25 Nov 2021 15:20:02 -0400 Subject: [PATCH] Unnecessary disconnect, handled by KittenRawSocketProvider --- CatCore/Services/Sockets/ClientSocket.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/CatCore/Services/Sockets/ClientSocket.cs b/CatCore/Services/Sockets/ClientSocket.cs index a64181e..eb8703b 100644 --- a/CatCore/Services/Sockets/ClientSocket.cs +++ b/CatCore/Services/Sockets/ClientSocket.cs @@ -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);