From 6d18b37a94e2077a70b8319bdab9305c4e91a4b6 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 2 Jun 2015 22:43:45 -0700 Subject: [PATCH] Fixed: Exiting from tray icon --- src/NzbDrone/SysTray/SysTrayApp.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone/SysTray/SysTrayApp.cs b/src/NzbDrone/SysTray/SysTrayApp.cs index 1cc7bda75..4f88819f8 100644 --- a/src/NzbDrone/SysTray/SysTrayApp.cs +++ b/src/NzbDrone/SysTray/SysTrayApp.cs @@ -1,6 +1,7 @@ using System; using System.ComponentModel; using System.Windows.Forms; +using NLog; using NzbDrone.Common.EnvironmentInfo; using NzbDrone.Common.Processes; using NzbDrone.Host; @@ -86,7 +87,8 @@ protected override void Dispose(bool isDisposing) private void OnExit(object sender, EventArgs e) { - Application.Exit(); + LogManager.Configuration = null; + Environment.Exit(0); } private void LaunchBrowser(object sender, EventArgs e)