From 6f1b673bec505f519da400293cc0ff4602159655 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Wed, 26 May 2021 17:46:17 +1000 Subject: [PATCH] made liblz16 happier on OpenOS when decompressing smaller files --- lib/liblz16.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/liblz16.lua b/lib/liblz16.lua index fe610f0..a13ce91 100644 --- a/lib/liblz16.lua +++ b/lib/liblz16.lua @@ -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()