Made it wait two seconds before testing the connection. Hopefully it'll work.
This commit is contained in:
parent
5339f4ffe0
commit
14a97e58b6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user