Only handleRecurrence/handleUntil when rc.gc=1 (#3772)

This commit is contained in:
Dustin J. Mitchell 2025-02-06 02:30:41 -05:00 committed by GitHub
parent fdb7e5e020
commit 7871617e9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -869,7 +869,7 @@ int Context::dispatch(std::string& out) {
if (config.getBoolean("debug") && config.getInteger("debug.parser") == 1)
debug(cli2.dump("Parse Tree (before command-specifіc processing)"));
if (c->needs_recur_update()) {
if (c->needs_recur_update() && Context::getContext().config.getBoolean("gc")) {
handleUntil();
handleRecurrence();
}