Prechádzať zdrojové kódy

fix windows service: was broken in the latest commit

Nicola Murino 5 rokov pred
rodič
commit
bbab6149e8
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      service/service_windows.go

+ 2 - 2
service/service_windows.go

@@ -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