diff --git a/server.go b/server.go index 1bdd26e..aa73093 100644 --- a/server.go +++ b/server.go @@ -132,7 +132,7 @@ func (server *Server) shutdown() { logger.Println("http server shutdown. healthcheckcounter :", t) atomic.StoreInt64(&healthcheckcounter, math.MinInt64) - for cnt := 0; cnt >= 100; { + for cnt := 0; cnt < 100; { next := atomic.LoadInt64(&healthcheckcounter) if next == t { cnt++