This commit is contained in:
NextTurn
2018-12-01 00:00:00 +08:00
committed by Next Turn
parent 2fc786a26a
commit a7c5334f10
3 changed files with 21 additions and 6 deletions

View File

@@ -102,7 +102,15 @@ namespace WinSW
AutoRefresh(config);
ServiceBase.Run(new WrapperService(config));
using var service = new WrapperService(config);
try
{
ServiceBase.Run(service);
}
catch
{
// handled in OnStart
}
}),
};