Update mgr.go

This commit is contained in:
utkarsh-extc
2019-07-28 14:35:50 +05:30
committed by GitHub
parent 02bcfa2d04
commit fc27f61743

View File

@@ -149,7 +149,7 @@ func (m *Mgr) CreateService(name, exepath string, c Config, args ...string) (*Se
return nil, err
}
}
if c.DelayedAutoStart == ServiceDelayedAutoStartTrue {
if c.DelayedAutoStart {
err = updateStartUp(h, c.DelayedAutoStart)
if err != nil {
windows.DeleteService(h)