mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-22 18:52:41 +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