diff options
Diffstat (limited to 'clients.go')
-rw-r--r-- | clients.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -5,7 +5,7 @@ import ( ) type Client struct { - conn net.Conn + conn *net.Conn UID [6]byte Nick string Ident string @@ -20,11 +20,11 @@ func (client *Client) Send(msg SMsg) { // Send failures are not returned; broken connections detected and severed on // the next receive. func (client *Client) SendRaw(s string) { - _, err := client.conn.Write([]byte(s)) + _, err := (*client.conn).Write([]byte(s)) if err != nil { // TODO: Should shut down the netFd instead but the stdlib // doesn't expose a way to do this. - client.conn.Close() + (*client.conn).Close() } } |