Fixed an upgrade/service bug where it would try to stop an already stopped service.

This commit is contained in:
kay.one
2011-11-14 18:38:15 -08:00
parent 9dbc97223f
commit e35a4bf8ac
6 changed files with 54 additions and 17 deletions
+1
View File
@@ -33,6 +33,7 @@ namespace NzbDrone
{
Logger.Info("Application mode: {0}", applicationMode);
//TODO:move this outside, it should be one of application modes (ApplicationMode.Service?)
if (!_enviromentProvider.IsUserInteractive)
{
_serviceProvider.Run(_applicationServer);