From ed6ebc27616d10ccaacedb5d6c9c8bf2bc152749 Mon Sep 17 00:00:00 2001 From: mountain Date: Wed, 28 Jun 2023 17:37:49 +0900 Subject: [PATCH] =?UTF-8?q?lb=EC=97=90=20=EB=B6=99=EC=96=B4=EC=9E=88?= =?UTF-8?q?=EC=9D=84=20=EA=B2=BD=EC=9A=B0=20=EC=A2=85=EB=A3=8C=20=EB=A1=9C?= =?UTF-8?q?=EC=A7=81=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index 4d83052..d38d198 100644 --- a/server.go +++ b/server.go @@ -129,7 +129,7 @@ func (server *Server) shutdown() { if atomic.LoadInt64(&healthcheckcounter) > 0 { atomic.StoreInt64(&healthcheckcounter, math.MinInt64) - for atomic.LoadInt64(&healthcheckcounter)-math.MinInt64 > 10 { + for atomic.LoadInt64(&healthcheckcounter)-math.MinInt64 == 0 { time.Sleep(100 * time.Millisecond) } }