Skip to content

Commit

Permalink
fix leaked goroutine
Browse files Browse the repository at this point in the history
  • Loading branch information
windycrypto committed Nov 27, 2023
1 parent eed14b4 commit 7711a64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relay/wsconn.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (c *client) write() {
err := c.conn.WriteMessage(websocket.TextMessage, m.Bytes())
if err != nil {
log.Error("client write error", err, zap.Any("client", c), zap.Any("message", message))
c.terminate(err)
//c.terminate(err)
return
}
case <-c.quit:
Expand Down

0 comments on commit 7711a64

Please sign in to comment.