fix: Fix TypeError when downloading a folder

This commit is contained in:
yflory 2026-03-16 10:05:00 +01:00
parent 953980835a
commit 87d59ffb9a

View File

@ -2005,7 +2005,7 @@ define([
if (cgNetworkIndex > 30) {
cgNetworkIndex = 0;
// Make sure all previous command are done and disconnect
const prom = cpNetworkStatus[cgNetworkId] || [];
const prom = cgNetworkStatus[cgNetworkId] || [];
Promise.all(prom).then((nw) => {
let network = nw[0];
if (typeof(network?.disconnect) === "function") {