From 3f2ce41c2a84f2d5ef65610f26b984f850a65c75 Mon Sep 17 00:00:00 2001 From: mountain Date: Wed, 2 Jul 2025 11:54:05 +0900 Subject: [PATCH] =?UTF-8?q?nil=20=EC=B2=B4=ED=81=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- metric/common.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/metric/common.go b/metric/common.go index d708c4d..5cceb59 100644 --- a/metric/common.go +++ b/metric/common.go @@ -33,7 +33,10 @@ type MetricPipe struct { } func (mp MetricPipe) Close() { - mp.pipe.Close() + if mp.pipe != nil { + mp.pipe.Close() + mp.pipe = nil + } } func (mp MetricPipe) writeLine(line string) {