From cb06a2c3eb2b4747aa3ecf7de81e6b4317e277e5 Mon Sep 17 00:00:00 2001 From: Gautam krishna R Date: Tue, 18 Feb 2025 06:28:19 +0000 Subject: [PATCH] prevent calling setGpu when the image selection is empty --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index aac25ec..1cb3646 100644 --- a/index.js +++ b/index.js @@ -111,7 +111,7 @@ io.on('connection', async function (socket) { } // GPU yaml merge - if (installSettings.forceGpu !== 'disabled') { + if (installSettings.forceGpu !== 'disabled' && imagesI.images) { imagesI = await setGpu(imagesI); } @@ -151,7 +151,7 @@ io.on('connection', async function (socket) { } // GPU yaml merge - if (upgradeSettings.forceGpu !== 'disabled') { + if (upgradeSettings.forceGpu !== 'disabled' && imagesI.images) { imagesI = await setGpu(imagesI); }