1
0
mirror of https://github.com/ShadowKatStudios/OC-Minitel.git synced 2025-04-17 00:58:17 +10:00

chunksize was too large

This commit is contained in:
Examnes 2023-09-18 18:17:25 +04:00
parent 3c9be1d61d
commit 1a15b18e7b
2 changed files with 5 additions and 6 deletions

View File

@ -8,11 +8,11 @@ if #tA < 1 then
return return
end end
local components = r2r.call(host,"listcomponents") local cm = r2r.call(host,"listcomponents")
for k,v in pairs(components) do for k,v in cm do
ctype = k ctype = v
addr = v addr = k
local saddr = addr:gsub("%-","%%-") local saddr = addr:gsub("%-","%%-")
if addr:len() < 36 then if addr:len() < 36 then
local flist = r2r.call(host,"list") local flist = r2r.call(host,"list")
@ -31,6 +31,5 @@ for k,v in pairs(components) do
error("no such remote component: "..addr) error("no such remote component: "..addr)
end end
vcomponent.register(faddr or addr, ctype, px) vcomponent.register(faddr or addr, ctype, px)
end end

View File

@ -1,6 +1,6 @@
r2r = {} r2r = {}
r2r.buffer = {} r2r.buffer = {}
r2r.chunksize = 4000 r2r.chunksize = 1000
r2r.initalized = false r2r.initalized = false
r2r.fn = {} r2r.fn = {}