Fix inverted logic in Windows service detection (#5106)

This commit is contained in:
Tobias Gruetzmacher 2022-10-02 22:56:54 +02:00 committed by GitHub
parent b1d04f5b39
commit da24f57dac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ import (
func init() {
isService, err := svc.IsWindowsService()
if err != nil || isService {
if err != nil || !isService {
return
}
go func() {