From 4434c1d4c8b24db2a3ca8ec2aaf629ce66956034 Mon Sep 17 00:00:00 2001 From: 0neGal Date: Sun, 16 Jul 2023 18:46:32 +0200 Subject: fixed unzipper pre-maturily thinking it's finished This caused errors where the folder would already be moved even though it's not entirely done unzipping. --- src/modules/packages.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/packages.js b/src/modules/packages.js index f515dde..8d40de1 100644 --- a/src/modules/packages.js +++ b/src/modules/packages.js @@ -268,7 +268,9 @@ packages.extract = async (zip_path, name) => { path: extract_dir } )).on("finish", () => { - resolve(extract_dir); + setInterval(() => { + resolve(extract_dir); + }, 1000) }); }) } -- cgit v1.2.3