Skip to content

Commit 54fa268

Browse files
committed
Unnecessary disconnect, handled by KittenRawSocketProvider
1 parent a00b35a commit 54fa268

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

CatCore/Services/Sockets/ClientSocket.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -197,19 +197,6 @@ private void Close()
197197
return;
198198
}
199199

200-
try
201-
{
202-
if (WorkSocket.Connected)
203-
{
204-
WorkSocket.Disconnect(true);
205-
WorkSocket.Close();
206-
}
207-
}
208-
catch (Exception e)
209-
{
210-
Console.Error.WriteLine(e);
211-
}
212-
213200
_socketStream.Dispose();
214201

215202
_onClose.Invoke(this);

0 commit comments

Comments
 (0)