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 2026-06-26 18:09:04 +02:00 committed by GitHub
commit 377c25e7c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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