From 8e7e3b7256823da121f435c9ab953dfdfe476bb9 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Thu, 12 Sep 2013 18:07:57 -0700 Subject: [PATCH] Allow negative relative expirations in DeadlineTimer --- modules/beast_core/thread/beast_DeadlineTimer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/beast_core/thread/beast_DeadlineTimer.cpp b/modules/beast_core/thread/beast_DeadlineTimer.cpp index 318aa65c6..797c5b0a7 100644 --- a/modules/beast_core/thread/beast_DeadlineTimer.cpp +++ b/modules/beast_core/thread/beast_DeadlineTimer.cpp @@ -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);