Compare commits

...

2 Commits

2 changed files with 5 additions and 2 deletions

View File

@ -13,7 +13,7 @@ local function readBuffer(fi)
if len < 1 then
return nil
end
coroutine.yield()
if os.sleep then os.sleep(0) else coroutine.yield() end
return lz.decompress(fi:read(len))
end
function stream.close()

View File

@ -1,3 +1,4 @@
local fsmanager = {}
local function mount(addr)
dest = component.invoke(addr,"getLabel") or "mnt/"..addr:sub(1,3)
dest = "/"..dest
@ -12,7 +13,7 @@ for addr, _ in component.list("filesystem") do
mount(addr)
end
function start()
function fsmanager.start()
return os.spawn(function()
while true do
local tE = {coroutine.yield()}
@ -24,3 +25,5 @@ function start()
end
end,"fsmanager")
end
return fsmanager