Windows: fix build

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2025-12-05 21:49:23 +01:00
parent e20b23fd47
commit c3b2e599bc

View File

@@ -108,7 +108,7 @@ func (s *WindowsService) Execute(args []string, r <-chan svc.ChangeRequest, chan
changes <- svc.Status{State: svc.StartPending}
go func() {
if err := s.Service.Start(); err != nil {
if err := s.Service.Start(false); err != nil {
logger.Error(logSender, "", "Windows service failed to start, error: %v", err)
s.Service.Error = err
s.Service.Shutdown <- true