3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-22 18:52:41 +01:00

don't close socket sending channel

This commit is contained in:
Jeremy Latt 2014-02-14 19:30:07 -08:00
parent 87cc184ec0
commit 50f1012c92

View File

@ -57,7 +57,6 @@ func (socket *Socket) Close() {
socket.mutex.Lock() socket.mutex.Lock()
socket.closed = true socket.closed = true
socket.conn.Close() socket.conn.Close()
close(socket.send)
close(socket.receive) close(socket.receive)
socket.mutex.Unlock() socket.mutex.Unlock()
} }