Skip to content

Commit

Permalink
websocket/client.go: in Shutdown() no need to call Close() as it is a…
Browse files Browse the repository at this point in the history
…lready called in Read()
  • Loading branch information
pnx committed Nov 5, 2023
1 parent bc8c7de commit 4685972
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion websocket/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ func (c *Client) Shutdown(ctx context.Context) error {
for {
_, err := c.Read()
if err != nil {
c.Close()
return
}
}
Expand Down

0 comments on commit 4685972

Please sign in to comment.