mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +03:00
Windows: fix build
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -108,7 +108,7 @@ func (s *WindowsService) Execute(args []string, r <-chan svc.ChangeRequest, chan
|
|||||||
changes <- svc.Status{State: svc.StartPending}
|
changes <- svc.Status{State: svc.StartPending}
|
||||||
|
|
||||||
go func() {
|
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)
|
logger.Error(logSender, "", "Windows service failed to start, error: %v", err)
|
||||||
s.Service.Error = err
|
s.Service.Error = err
|
||||||
s.Service.Shutdown <- true
|
s.Service.Shutdown <- true
|
||||||
|
|||||||
Reference in New Issue
Block a user