Close tray app when updating

This commit is contained in:
WhatFox
2015-11-18 19:36:37 +00:00
parent 0b74f762a3
commit 44aa33a7e0
6 changed files with 102 additions and 9 deletions

View File

@@ -42,6 +42,14 @@ namespace JackettTray
Engine.Logger.Info("Starting server from tray");
Engine.Server.Start();
}
Task.Factory.StartNew(WaitForEvent);
}
private void WaitForEvent()
{
Engine.LockService.WaitForSignal();
Application.Exit();
}
void toolStripMenuItemWebUI_Click(object sender, EventArgs e)