mirror of https://github.com/fluffle/goirc
Use second constant in SetTimeout().
This commit is contained in:
parent
07d5c0676e
commit
c3715be829
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue