MCPcopy
hub / github.com/gliderlabs/ssh / closeDoneChanLocked

Method closeDoneChanLocked

server.go:404–414  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

402}
403
404func (srv *Server) closeDoneChanLocked() {
405 ch := srv.getDoneChanLocked()
406 select {
407 case <-ch:
408 // Already closed. Don't close again.
409 default:
410 // Safe to close here. We're the only closer, guarded
411 // by srv.mu.
412 close(ch)
413 }
414}
415
416func (srv *Server) closeListenersLocked() error {
417 var err error

Callers 2

CloseMethod · 0.95
ShutdownMethod · 0.95

Calls 1

getDoneChanLockedMethod · 0.95

Tested by

no test coverage detected