From 2a00a5ad50f2ac4ed19fa6a84c59f539076e8c2a Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Wed, 20 Apr 2005 18:57:47 +0000 Subject: Trying to get non-blocking connect to work. --- samples/forward.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'samples') diff --git a/samples/forward.lua b/samples/forward.lua index 0f79ee2..c213a59 100644 --- a/samples/forward.lua +++ b/samples/forward.lua @@ -77,11 +77,11 @@ print("trying to connect peer", who, host, port) if not ret and err == "timeout" then print("got timeout, will wait", who) wait(who, "output") - ret, err = who:connected() + ret, err = who:connect(host, port) print("connection results arrived", who, ret, err) end if not ret then -print("connection failed", who) +print("connection failed", who, err) kick(who) kick(context[who].peer) else -- cgit v1.2.3-55-g6feb