From 97b26e0b66c840a446a0179200c7df23565330d1 Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Sun, 2 Jan 2005 22:44:00 +0000 Subject: Almost ready to release beta3 --- samples/talker.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'samples/talker.lua') diff --git a/samples/talker.lua b/samples/talker.lua index 3f6e69c..901ed2c 100644 --- a/samples/talker.lua +++ b/samples/talker.lua @@ -12,10 +12,10 @@ if arg then port = arg[2] or port end print("Attempting connection to host '" ..host.. "' and port " ..port.. "...") -c = socket.try(socket.connect(host, port)) +c = assert(socket.connect(host, port)) print("Connected! Please type stuff (empty line to stop):") l = io.read() while l and l ~= "" and not e do - socket.try(c:send(l, "\n")) + assert(c:send(l .. "\n")) l = io.read() end -- cgit v1.2.3-55-g6feb