mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
fix: Inacessible code due to wrong comparison operation
This commit is contained in:
parent
6090518124
commit
76c8425452
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ func waitForServiceStatus(handle windows.Handle, neededStatus uint32, timeLimit
|
|||
var status windows.SERVICE_STATUS
|
||||
status.CurrentState = windows.SERVICE_NO_CHANGE
|
||||
start := time.Now()
|
||||
for status.CurrentState == neededStatus {
|
||||
for status.CurrentState != neededStatus {
|
||||
err := windows.QueryServiceStatus(handle, &status)
|
||||
if err != nil {
|
||||
return false, fmt.Errorf("failed while waiting for service to start: %w", err)
|
||||
|
|
Loading…
Add table
Reference in a new issue