diff --git a/src/functions/helperFunctions.js b/src/functions/helperFunctions.js index c5ddd712468663c4254c7dce7b66f2fe05bcbddb..4795ba0487cd81cb77ad84d8ecb64bac6ab4f0ae 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); + } } };