MCPcopy
hub / github.com/caddyserver/caddy / Stop

Method Stop

modules/caddytls/tls.go:466–475  ·  view source on GitHub ↗

Stop stops the TLS module and cleans up any allocations.

()

Source from the content-addressed store, hash-verified

464
465// Stop stops the TLS module and cleans up any allocations.
466func (t *TLS) Stop() error {
467 // stop the storage cleaner goroutine and ticker
468 if t.storageCleanStop != nil {
469 close(t.storageCleanStop)
470 }
471 if t.storageCleanTicker != nil {
472 t.storageCleanTicker.Stop()
473 }
474 return nil
475}
476
477// Cleanup frees up resources allocated during Provision.
478func (t *TLS) Cleanup() error {

Callers

nothing calls this directly

Calls 1

StopMethod · 0.65

Tested by

no test coverage detected