Address CodeRabbit feedback on VNC server

This commit is contained in:
Viktor Liu
2026-05-20 17:16:55 +02:00
parent 17359cdc1e
commit 640a267556
14 changed files with 187 additions and 69 deletions
+5 -1
View File
@@ -257,7 +257,11 @@ func (s *Server) serviceAcceptLoop() {
enableTCPKeepAlive(conn, s.log)
conn = newMetricsConn(conn, s.sessionRecorder)
go s.handleServiceConnection(conn, sm)
s.trackConn(conn)
go func(c net.Conn) {
defer s.untrackConn(c)
s.handleServiceConnection(c, sm)
}(conn)
}
}