Merge pull request #3183 from chengzhichao-xydt/codex/onebot-body-close

fix(onebot): explicitly ignore resp.Body.Close() error after websocket dial
This commit is contained in:
Mauro authored and GitHub committed 2026-06-26 18:09:04 +02:00
commit 377c25e7c5
1 file changed
+1 -1
+1 -1
View File
@@ -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