private static void Cleanup() { if (!HelperProcess.HasExited) { HelperProcess.Kill(); } if (Proxy != null) { Proxy.Dispose(); } trayIcon.Visible = false; trayIcon.Dispose(); Logger.Dispose(); }
private static void Cleanup() { if (!HelperProcess.HasExited) { HelperProcess.CloseMainWindow(); if (!HelperProcess.WaitForExit(500)) { killed = true; HelperProcess.Kill(); } } if (Proxy != null) { Proxy.Dispose(); } trayIcon.Visible = false; trayIcon.Dispose(); Logger.Dispose(); }