From 500ce724360e069e6568ecaf3899fcdfa17ca1e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E6=99=BA=E8=B6=850668000959?= Date: Fri, 26 Jun 2026 22:14:38 +0800 Subject: [PATCH] fix(onebot): explicitly ignore resp.Body.Close() error after websocket dial --- pkg/channels/onebot/onebot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/channels/onebot/onebot.go b/pkg/channels/onebot/onebot.go index 392c34b77..97f1c60b2 100644 --- a/pkg/channels/onebot/onebot.go +++ b/pkg/channels/onebot/onebot.go @@ -195,7 +195,7 @@ func (c *OneBotChannel) connect() error { conn, resp, err := dialer.Dial(c.config.WSUrl, header) if resp != nil { - resp.Body.Close() + _ = resp.Body.Close() } if err != nil { return err