From 17c71d060c501900c1bdb60c273db5a17638d727 Mon Sep 17 00:00:00 2001 From: Wiebe Cazemier Date: Wed, 11 May 2022 19:32:07 +0200 Subject: [PATCH] Fix message expiration --- types.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types.cpp b/types.cpp index aeb0952..a7a56f7 100644 --- a/types.cpp +++ b/types.cpp @@ -192,7 +192,7 @@ bool PublishBase::hasExpired() const return false; const std::chrono::seconds age = std::chrono::duration_cast(std::chrono::steady_clock::now() - this->createdAt); - return (expiresAfter > age); + return (age > expiresAfter); } void PublishBase::setExpireAfter(uint32_t s) -- libgit2 0.21.4