完善续期调度生命周期和Web开关配置
This commit is contained in:
1 parent
1f987eb8be
commit
f6ce85b174
7 files changed
+129
-5
No files matched your search
@@ -169,6 +169,9 @@ func (a *App) Close() error {
|
||||
return nil
|
||||
}
|
||||
var first error
|
||||
if a.Renewal != nil {
|
||||
a.Renewal.Stop()
|
||||
}
|
||||
if a.HTTP != nil {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
|
||||
if err := a.HTTP.Shutdown(ctx); err != nil && first == nil {
|
||||
|
||||
Reference in new issue
Block a user