From 5e275e36adfb41788565fa7747a2cbdc371125ba Mon Sep 17 00:00:00 2001 From: Drew Lemmy Date: Tue, 29 Sep 2020 22:18:57 +0100 Subject: [PATCH] fix: parallel fix 2 (#47) --- milo/apis/storage.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/milo/apis/storage.lua b/milo/apis/storage.lua index fb086ea..2cdbc3d 100644 --- a/milo/apis/storage.lua +++ b/milo/apis/storage.lua @@ -277,6 +277,10 @@ function Storage:listItems(throttle) chunk = {} end end + + if #chunk > 0 then + parallel.waitForAll(table.unpack(chunk)) + end end for _, adapter in self:onlineAdapters() do