prevent cfg str generation from running forever (#1804)

This commit is contained in:
Aiden McClelland
2022-09-15 13:29:46 -06:00
committed by GitHub
parent 2e8bfcc74d
commit e199dbc37b

View File

@@ -1334,6 +1334,8 @@ impl DefaultableWith for ValueSpecString {
if &now.elapsed() > timeout {
return Err(TimeoutError);
}
} else {
return Ok(Value::String(candidate));
}
}
} else {