close sending channel (no more memory error, sending goroutine killed) -> TODO: manage already closed channels
This commit is contained in:
parent
858d409834
commit
4f85752052
|
@ -268,7 +268,7 @@ func (c *client) close(status MessageError, clientACK bool){
|
|||
// fmt.Printf("[close] wait read stop\n")
|
||||
c.io.reading.Wait()
|
||||
close(c.ch.receive)
|
||||
// close(c.ch.send)
|
||||
close(c.ch.send)
|
||||
|
||||
|
||||
if status == NONE {
|
||||
|
|
Loading…
Reference in New Issue