summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/src/server.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/server.cc b/server/src/server.cc
index a5a4880..f2be8a4 100644
--- a/server/src/server.cc
+++ b/server/src/server.cc
@@ -156,7 +156,9 @@ static std::string handleRequest(Transaction *transaction,
continue;
}
- bool completed = db.checkMacro(transaction->cpr, macro.attributes["name"]);
+ bool completed = db.checkMacro(transaction->cpr,
+ macro.attributes["name"],
+ time(NULL)-Conf::db_max_ttl);
answer += " <macro completed=";
if(completed) answer += "\"true\"";