fix windows service: was broken in the latest commit

This commit is contained in:
Nicola Murino 2020-10-09 22:42:13 +02:00
parent ce9387f1ab
commit bbab6149e8
No known key found for this signature in database
GPG key ID: 2F1FB59433D5A8CB

View file

@ -123,12 +123,12 @@ func (s *WindowsService) RunService() error {
return err
}
isIntSess, err := svc.IsWindowsService()
inService, err := svc.IsWindowsService()
if err != nil {
return err
}
s.isInteractive = isIntSess
s.isInteractive = !inService
dir := filepath.Dir(exePath)
if err = os.Chdir(dir); err != nil {
return err