Skip to content

Commit

Permalink
Fix concurrently closing and writing to the same chan
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Leite committed Aug 8, 2018
1 parent 3be5b0e commit b3bdd5b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion client/client.go
Expand Up @@ -301,7 +301,6 @@ func (c *Client) Disconnect() {
if c.Connected {
c.Connected = false
close(c.closeChan)
close(c.IncomingMsgChan)
c.conn.Close()
}
}
Expand Down

0 comments on commit b3bdd5b

Please sign in to comment.