fix(onebot): explicitly ignore resp.Body.Close() error after websocket dial
This commit is contained in:
parent
dff16dbb91
commit
500ce72436
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ func (c *OneBotChannel) connect() error {
|
||||||
|
|
||||||
conn, resp, err := dialer.Dial(c.config.WSUrl, header)
|
conn, resp, err := dialer.Dial(c.config.WSUrl, header)
|
||||||
if resp != nil {
|
if resp != nil {
|
||||||
resp.Body.Close()
|
_ = resp.Body.Close()
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue