Commit 17c71d060c501900c1bdb60c273db5a17638d727

Authored by Wiebe Cazemier
1 parent ec40e5b1

Fix message expiration

It was reversed...
Showing 1 changed file with 1 additions and 1 deletions
types.cpp
... ... @@ -192,7 +192,7 @@ bool PublishBase::hasExpired() const
192 192 return false;
193 193  
194 194 const std::chrono::seconds age = std::chrono::duration_cast<std::chrono::seconds>(std::chrono::steady_clock::now() - this->createdAt);
195   - return (expiresAfter > age);
  195 + return (age > expiresAfter);
196 196 }
197 197  
198 198 void PublishBase::setExpireAfter(uint32_t s)
... ...