From c3715be8292952de22fcb43874dce358cddf336f Mon Sep 17 00:00:00 2001 From: Alex Bramley Date: Fri, 22 Jul 2011 01:20:25 +0100 Subject: [PATCH] Use second constant in SetTimeout(). --- client/connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()