From 17cf200a63313510997aa9d3c13250fd854664ed Mon Sep 17 00:00:00 2001 From: Robin Leber <rleber98@gmail.com> Date: Thu, 27 Jun 2024 11:15:10 +0200 Subject: [PATCH] FIX: only pause running Container --- src/functions/helperFunctions.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/functions/helperFunctions.js b/src/functions/helperFunctions.js index c5ddd71..4795ba0 100644 --- a/src/functions/helperFunctions.js +++ b/src/functions/helperFunctions.js @@ -159,8 +159,10 @@ const deployArchitecture = async () => { const stopArchitecture = async () => { const customCodes = await getCustomCodes(); for (const customCode of customCodes) { - await pauseDockerContainer(customCode.id); - await setIsPaused(customCode.id); + if (!customCode.isPaused) { + await pauseDockerContainer(customCode.id); + await setIsPaused(customCode.id); + } } }; -- GitLab