Fix Windows lint errcheck/unused and Linux nilerr in console VNC fallback

This commit is contained in:
Viktor Liu
2026-05-16 17:23:36 +02:00
parent 62cf9e873b
commit 7123e6d1f4
5 changed files with 10 additions and 17 deletions

View File

@@ -166,7 +166,7 @@ func createSASEvent() (windows.Handle, bool) {
// signalled, until ctx is cancelled. Recovers from panics inside SendSAS so
// a future ABI surprise doesn't tear down the service.
func runSASListenerLoop(ctx context.Context, ev windows.Handle) {
defer windows.CloseHandle(ev)
defer func() { _ = windows.CloseHandle(ev) }()
defer func() {
if r := recover(); r != nil {
log.Warnf("SAS listener recovered from panic: %v", r)