1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00

minor improvement

This commit is contained in:
Gerasimos (Makis) Maropoulos
2023-11-15 11:57:52 +02:00
parent 5f749453c7
commit b1f2c24b64
2 changed files with 8 additions and 4 deletions

View File

@@ -557,6 +557,9 @@ func (s *step7) Run(runner Runner, configurators ...Configurator) error {
// they will be called on interrupt signals too,
// because Iris has a builtin mechanism to call server's shutdown on interrupt.
for _, cb := range s.step6.closers {
if cb == nil {
continue
}
cb()
}
}()