From 5aeb6a6cbba7b1e32e5fac2c08773d141c87047e Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Tue, 17 Jun 2008 19:00:14 +0000 Subject: [PATCH] Fix the check against the max supported rate git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@123393 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_timing_pthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/res_timing_pthread.c b/res/res_timing_pthread.c index 6b17e9b..ead2c2d 100644 --- a/res/res_timing_pthread.c +++ b/res/res_timing_pthread.c @@ -149,7 +149,7 @@ static int pthread_timer_set_rate(int handle, unsigned int rate) return -1; } - if (rate > 0 && rate < MAX_RATE) { + if (rate > MAX_RATE) { ast_log(LOG_ERROR, "res_timing_pthread only supports timers at a max rate of %d / sec\n", MAX_RATE); errno = EINVAL; -- 1.7.9.5