[asterisk-commits] russell: branch 1.4 r110395 - /branches/1.4/main/autoservice.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Mar 20 18:13:56 CDT 2008
Author: russell
Date: Thu Mar 20 18:13:56 2008
New Revision: 110395
URL: http://svn.digium.com/view/asterisk?view=rev&rev=110395
Log:
Shorten the ast_waitfor() timeout from 500 ms to 50 ms in the autoservice thread.
This really should not make a difference except in very rare cases. That case would
be that all of the channels in autoservice are not generating any frames. In that
case, this change reduces the potential amount of time that a thread waits in
ast_autoservice_stop() for the autoservice thread to wrap back around to the beginning
of its loop.
(closes issue #12266, reported by dimas)
Modified:
branches/1.4/main/autoservice.c
Modified: branches/1.4/main/autoservice.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/autoservice.c?view=diff&rev=110395&r1=110394&r2=110395
==============================================================================
--- branches/1.4/main/autoservice.c (original)
+++ branches/1.4/main/autoservice.c Thu Mar 20 18:13:56 2008
@@ -93,7 +93,7 @@
struct ast_channel *mons[MAX_AUTOMONS];
struct ast_channel *chan;
struct asent *as;
- int x = 0, ms = 500;
+ int x = 0, ms = 50;
AST_LIST_LOCK(&aslist);
More information about the asterisk-commits
mailing list