Windows: fix build

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2025-08-17 13:35:29 +02:00
parent 63366b0007
commit 81a9813376

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(false); err != nil {
if err := s.Service.Start(); err != nil {
logger.Error(logSender, "", "Windows service failed to start, error: %v", err)
s.Service.Error = err
s.Service.Shutdown <- true