mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-08 05:05:51 +00:00
Allow negative relative expirations in DeadlineTimer
This commit is contained in:
@@ -218,7 +218,7 @@ DeadlineTimer::~DeadlineTimer ()
|
||||
|
||||
void DeadlineTimer::setExpiration (double secondsUntilDeadline)
|
||||
{
|
||||
bassert (secondsUntilDeadline > 0);
|
||||
bassert (secondsUntilDeadline != 0);
|
||||
|
||||
Time const when = Time::getCurrentTime () + RelativeTime (secondsUntilDeadline);
|
||||
|
||||
@@ -227,7 +227,7 @@ void DeadlineTimer::setExpiration (double secondsUntilDeadline)
|
||||
|
||||
void DeadlineTimer::setRecurringExpiration (double secondsUntilDeadline)
|
||||
{
|
||||
bassert (secondsUntilDeadline > 0);
|
||||
bassert (secondsUntilDeadline != 0);
|
||||
|
||||
Time const when = Time::getCurrentTime () + RelativeTime (secondsUntilDeadline);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user