Address review findings on the VNC server, session auth and capture decoder

This commit is contained in:
Viktor Liu
2026-08-27 18:33:52 +02:00
parent 09e069a175
commit 47d8f912e5
18 changed files with 179 additions and 72 deletions
+11 -1
View File
@@ -231,13 +231,23 @@ func (vs *VirtualSession) isAlive() bool {
return true
}
// Capturer returns the screen capturer for this virtual session.
// Capturer returns the screen capturer for this virtual session, or nil once
// Stop has torn it down. Read under vs.mu, which is what Stop writes it under.
func (vs *VirtualSession) Capturer() ScreenCapturer {
vs.mu.Lock()
defer vs.mu.Unlock()
if vs.poller == nil {
return nil
}
return vs.poller
}
// Injector returns the input injector for this virtual session.
func (vs *VirtualSession) Injector() InputInjector {
vs.mu.Lock()
defer vs.mu.Unlock()
return vs.injector
}