close sending channel (no more memory error, sending goroutine killed) -> TODO: manage already closed channels

This commit is contained in:
xdrm-brackets 2018-05-05 17:43:49 +02:00
parent 858d409834
commit 4f85752052
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ func (c *client) close(status MessageError, clientACK bool){
// fmt.Printf("[close] wait read stop\n") // fmt.Printf("[close] wait read stop\n")
c.io.reading.Wait() c.io.reading.Wait()
close(c.ch.receive) close(c.ch.receive)
// close(c.ch.send) close(c.ch.send)
if status == NONE { if status == NONE {