KASM-8264 Don't call setGpu when there aren't any images

This commit is contained in:
Chris Hunt 2026-03-31 14:01:08 +01:00
parent d4b7db69f4
commit 7924f882db
No known key found for this signature in database

View file

@ -196,7 +196,7 @@ io.on('connection', async function (socket) {
}
// GPU yaml merge
if (installSettings.forceGpu !== 'disabled') {
if (installSettings.forceGpu !== 'disabled' && imagesI.images) {
imagesI = await setGpu(imagesI);
}
@ -236,7 +236,7 @@ io.on('connection', async function (socket) {
}
// GPU yaml merge
if (upgradeSettings.forceGpu !== 'disabled') {
if (upgradeSettings.forceGpu !== 'disabled' && imagesI.images) {
imagesI = await setGpu(imagesI);
}