Skip to content

Commit 9c438ee

Browse files
committed
Misc
Signed-off-by: Syrone Wong <[email protected]>
1 parent ce26bc1 commit 9c438ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shadowsocks-csharp/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ static void Main()
4343
SystemEvents.PowerModeChanged += SystemEvents_PowerModeChanged;
4444
Application.EnableVisualStyles();
4545
Application.SetCompatibleTextRenderingDefault(false);
46-
Application.ApplicationExit += (sender, args) => HotKeys.Destroy();
4746

4847
if (!mutex.WaitOne(0, false))
4948
{
@@ -150,6 +149,7 @@ private static void Timer_Elapsed(object sender, System.Timers.ElapsedEventArgs
150149

151150
private static void Application_ApplicationExit(object sender, EventArgs e)
152151
{
152+
HotKeys.Destroy();
153153
if (_controller != null)
154154
{
155155
_controller.Stop();

0 commit comments

Comments
 (0)