From bb6a526f362fc3f666f4541c73ab5e95b05fb831 Mon Sep 17 00:00:00 2001 From: Joshua Parkin Date: Fri, 23 Jun 2023 21:52:16 -0700 Subject: [PATCH] Revert "fix while loop to and instead of or" This reverts commit 4d9e3083b2e8e2aeb7869585ee76e08d9ba9fad3. --- executor/src/core/LanguageController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/executor/src/core/LanguageController.ts b/executor/src/core/LanguageController.ts index ada0bdfc6..420c87b69 100644 --- a/executor/src/core/LanguageController.ts +++ b/executor/src/core/LanguageController.ts @@ -375,14 +375,14 @@ export default class LanguageController { // We need to get the meta from the language language // Retry 10 times with increasing delay to account for Holochain sync let retries = 0; - while (!languageMeta && retries < 10) { + while (!languageMeta || retries < 10) { try { languageMeta = await this.getLanguageExpression(address) } catch (e) { console.error(`Error getting language meta from language language: ${e}\nRetrying...`) } retries++; - await new Promise(r => setTimeout(r, 5000 * retries)); + await new Promise(r => setTimeout(r, 5000 * retries)); } } if (languageMeta == null) {