Skip to content

Commit ff64ab1

Browse files
committed
services: mark win7 code the same as elsewhere
Signed-off-by: Jason A. Donenfeld <[email protected]>
1 parent 1f536ff commit ff64ab1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/boot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func StartedAtBoot() bool {
2929
if reason, err := svc.DynamicStartReason(); err == nil {
3030
startedAtBoot = (reason & svc.StartReasonAuto) != 0 || (reason & svc.StartReasonDelayedAuto) != 0
3131
} else if errors.Is(err, windows.ERROR_PROC_NOT_FOUND) {
32-
// This is an ugly hack for Windows 7, which hopefully we'll be able to remove down the road.
32+
// TODO: Below this line is Windows 7 compatibility code, which hopefully we can delete at some point.
3333
startedAtBoot = windows.DurationSinceBoot() < time.Minute*10
3434
} else {
3535
log.Printf("Unable to determine service start reason: %v", err)

0 commit comments

Comments
 (0)