Fix windows build.
This commit is contained in:
+2
-2
@@ -27,7 +27,7 @@ func (ws *windowsService) Execute(args []string, r <-chan svc.ChangeRequest, cha
|
|||||||
changes <- svc.Status{State: svc.StartPending}
|
changes <- svc.Status{State: svc.StartPending}
|
||||||
|
|
||||||
if err := ws.onStart(); err != nil {
|
if err := ws.onStart(); err != nil {
|
||||||
ws.LogError(err.Error())
|
ws.Error(err.Error())
|
||||||
return true, 1
|
return true, 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -41,7 +41,7 @@ loop:
|
|||||||
case svc.Stop, svc.Shutdown:
|
case svc.Stop, svc.Shutdown:
|
||||||
changes <- svc.Status{State: svc.StopPending}
|
changes <- svc.Status{State: svc.StopPending}
|
||||||
if err := ws.onStop(); err != nil {
|
if err := ws.onStop(); err != nil {
|
||||||
ws.LogError(err.Error())
|
ws.Error(err.Error())
|
||||||
changes <- svc.Status{State: svc.Running, Accepts: cmdsAccepted}
|
changes <- svc.Status{State: svc.Running, Accepts: cmdsAccepted}
|
||||||
continue loop
|
continue loop
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user