From 14a97e58b6bd4322ef7b3c86c933106d28665146 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Mon, 8 May 2017 10:46:31 +1000 Subject: [PATCH] Made it wait two seconds before testing the connection. Hopefully it'll work. --- modules/applications/ircbridge-embedded.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/applications/ircbridge-embedded.lua b/modules/applications/ircbridge-embedded.lua index 9966f14..f5716a6 100644 --- a/modules/applications/ircbridge-embedded.lua +++ b/modules/applications/ircbridge-embedded.lua @@ -3,7 +3,10 @@ function ircb(h,p,n) -- host, port s("IRC bridge connector", function() local ip,h,p = component.proxy(component.list("internet")()),h,p local c=ip.connect(h,p) - c.finishConnect() + local cT = computer.uptime + while computer.uptime() < cT + 2 do + C.yield() + end if c.finishConnect() then local ct=computer.uptime() local function wl(s)