summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--service_windows.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/service_windows.go b/service_windows.go
index 7590fc3..6db2992 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() {