1
0
Fork 0
mirror of https://github.com/fluffle/goirc synced 2025-05-12 18:44:50 +00:00

Use second constant in SetTimeout().

This commit is contained in:
Alex Bramley 2011-07-22 01:20:25 +01:00
parent 07d5c0676e
commit c3715be829

View file

@ -138,7 +138,7 @@ func (conn *Conn) Connect(host string, pass ...string) os.Error {
conn.io = bufio.NewReadWriter(
bufio.NewReader(conn.sock),
bufio.NewWriter(conn.sock))
conn.sock.SetTimeout(conn.Timeout * 1e9)
conn.sock.SetTimeout(conn.Timeout * second)
conn.connected = true
go conn.send()
go conn.recv()