Fix services?

This commit is contained in:
John Gross
2019-08-31 23:25:05 -07:00
parent 997a3ca31c
commit 6680b0adb2
3 changed files with 9 additions and 6 deletions

View File

@@ -63,7 +63,7 @@ namespace Torch.Server
// Breaks on Windows Server 2019
if (!new ComputerInfo().OSFullName.Contains("Server 2019") && !Environment.UserInteractive)
{
using (var service = new TorchService())
using (var service = new TorchService(args))
ServiceBase.Run(service);
return;
}