MCPcopy Index your code
hub / github.com/foxcpp/maddy / moduleStop

Function moduleStop

maddy.go:402–410  ·  view source on GitHub ↗
(c *container.C, earlyStop bool)

Source from the content-addressed store, hash-verified

400}
401
402func moduleStop(c *container.C, earlyStop bool) error {
403 if earlyStop {
404 if err := c.Lifetime.EarlyStopAll(); err != nil {
405 c.DefaultLogger.Error("early stop failed", err)
406 }
407 }
408
409 return c.Lifetime.StopAll()
410}
411
412func moduleMain(configPath string) error {
413 log.DefaultLogger.Msg("loading configuration...")

Callers 2

moduleMainFunction · 0.85
moduleReloadFunction · 0.85

Calls 3

EarlyStopAllMethod · 0.80
StopAllMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected