aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2023-07-16 18:46:32 +0200
committer0neGal <mail@0negal.com>2023-07-16 18:46:32 +0200
commit4434c1d4c8b24db2a3ca8ec2aaf629ce66956034 (patch)
tree28150bf105a0ba8bb39b51738a786e774da66fa3
parentfb177137413d9fa8eb12364a76dd74b0b4bfc1e6 (diff)
downloadViper-4434c1d4c8b24db2a3ca8ec2aaf629ce66956034.tar.gz
Viper-4434c1d4c8b24db2a3ca8ec2aaf629ce66956034.zip
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.
-rw-r--r--src/modules/packages.js4
1 files changed, 3 insertions, 1 deletions
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)
});
})
}