mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-13 07:29:30 +01:00
avoid race double-close on replies
This commit is contained in:
parent
3ba928cee6
commit
7051627fb2
@ -131,11 +131,6 @@ func (client *Client) writeReplies() {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
if client.replies != nil {
|
||||
close(client.replies)
|
||||
client.replies = nil
|
||||
}
|
||||
}
|
||||
|
||||
func (client *Client) Destroy() {
|
||||
|
Loading…
Reference in New Issue
Block a user