Skip to content

Commit b364203

Browse files
committed
fix starting windows service
do not start main loop twice
1 parent 417ae9d commit b364203

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

pkg/snclient/snclient_windows.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ func (m *winService) Execute(_ []string, changeReq <-chan svc.ChangeRequest, cha
3535
changes <- svc.Status{State: svc.StartPending}
3636
changes <- svc.Status{State: svc.Running, Accepts: svc.AcceptStop | svc.AcceptShutdown}
3737

38-
go m.snc.Run()
3938
if !m.snc.StartWait(svcWaitTimeOut) {
4039
log.Fatalf("snclient failed to start within %s", svcWaitTimeOut.String())
4140
}

0 commit comments

Comments
 (0)