Use second constant in SetTimeout().

This commit is contained in:
Alex Bramley 2011-07-22 01:20:25 +01:00
parent 07d5c0676e
commit c3715be829
1 changed files with 1 additions and 1 deletions

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()