Trying a different close thing, other oen was failing?
authorAndrey Petrov <andrey.petrov@shazow.net>
Sun, 4 Jan 2015 01:20:39 +0000 (17:20 -0800)
committerAndrey Petrov <andrey.petrov@shazow.net>
Sun, 4 Jan 2015 01:20:39 +0000 (17:20 -0800)
client.go

index dcec55b32bc4499c0fc06d725c8c0e25258bf601..dac37863122c82cb05e84ee232e460177de913df 100644 (file)
--- a/client.go
+++ b/client.go
@@ -127,7 +127,7 @@ func (c *Client) Send(msg string) {
        case c.Msg <- msg:
        default:
                logger.Errorf("Msg buffer full, dropping: %s (%s)", c.Name, c.Conn.RemoteAddr())
-               c.Conn.Close()
+               c.Conn.Conn.Close()
        }
 }