mirror of
https://github.com/winsw/winsw.git
synced 2025-12-10 18:37:28 +08:00
Catch
This commit is contained in:
@@ -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
|
||||
}
|
||||
}),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user