MCPcopy
hub / github.com/bettercap/bettercap / Stop

Method Stop

modules/https_server/https_server.go:168–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

166}
167
168func (mod *HttpsServer) Stop() error {
169 return mod.SetRunning(false, func() {
170 ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second)
171 defer cancel()
172 mod.server.Shutdown(ctx)
173 })
174}

Callers 2

NewHttpsServerFunction · 0.95
StartMethod · 0.95

Calls 2

SetRunningMethod · 0.80
ShutdownMethod · 0.80

Tested by

no test coverage detected