MCPcopy Index your code
hub / github.com/coder/coder / Close

Method Close

agent/x/agentdesktop/api.go:534–544  ·  view source on GitHub ↗

Close shuts down the desktop session if one is running.

()

Source from the content-addressed store, hash-verified

532
533// Close shuts down the desktop session if one is running.
534func (a *API) Close() error {
535 a.closeMu.Lock()
536 if a.closed {
537 a.closeMu.Unlock()
538 return nil
539 }
540 a.closed = true
541 a.closeMu.Unlock()
542
543 return a.desktop.Close()
544}
545
546// decodeRecordingRequest decodes and validates a recording request
547// from the HTTP body, returning the recording ID. Returns false if

Calls 3

CloseMethod · 0.65
LockMethod · 0.45
UnlockMethod · 0.45