Skip to content

Commit

Permalink
Revert "Print log message"
Browse files Browse the repository at this point in the history
This reverts commit 6db907c.
  • Loading branch information
nak3 authored and AlexVulaj committed Jan 22, 2024
1 parent 7d5b8cc commit cf50a3e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -1158,10 +1158,7 @@ func (c *Conn) SetCloseHandler(h func(code int, text string) error) {
if h == nil {
h = func(code int, text string) error {
message := FormatCloseMessage(code, "")
err := c.WriteControl(CloseMessage, message, time.Now().Add(writeWait))
if err != nil {
log.Printf("websocket: discarding close handler error: %v", err)
}
_ = c.WriteControl(CloseMessage, message, time.Now().Add(writeWait))
return nil
}
}
Expand Down

0 comments on commit cf50a3e

Please sign in to comment.