From e199dbc37bcf7cc9f20a3f8badc34a13ecda5e95 Mon Sep 17 00:00:00 2001 From: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com> Date: Thu, 15 Sep 2022 13:29:46 -0600 Subject: [PATCH] prevent cfg str generation from running forever (#1804) --- backend/src/config/spec.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/config/spec.rs b/backend/src/config/spec.rs index 31228572e..f8b2d37e3 100644 --- a/backend/src/config/spec.rs +++ b/backend/src/config/spec.rs @@ -1334,6 +1334,8 @@ impl DefaultableWith for ValueSpecString { if &now.elapsed() > timeout { return Err(TimeoutError); } + } else { + return Ok(Value::String(candidate)); } } } else {