From da24f57daca431704f953500386758eae2b8de1b Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Sun, 2 Oct 2022 22:56:54 +0200 Subject: [PATCH] Fix inverted logic in Windows service detection (#5106) --- service_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service_windows.go b/service_windows.go index 7590fc3c..6db29925 100644 --- a/service_windows.go +++ b/service_windows.go @@ -21,7 +21,7 @@ import ( func init() { isService, err := svc.IsWindowsService() - if err != nil || isService { + if err != nil || !isService { return } go func() {