diff --git a/client/connection.go b/client/connection.go index f44a22b..73706f3 100644 --- a/client/connection.go +++ b/client/connection.go @@ -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()