aboutsummaryrefslogtreecommitdiffstats
path: root/main/autoservice.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-20 23:13:56 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-20 23:13:56 +0000
commit09f7ef727a47a797445e5dd25cb7b728a8430b42 (patch)
tree433051e039d8ad6750c25b8af267ee146a86e6c9 /main/autoservice.c
parentc6d439f178a94240e931d2156e74c7134e9b492e (diff)
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) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@110395 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/autoservice.c')
-rw-r--r--main/autoservice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/autoservice.c b/main/autoservice.c
index 84083c6c5..f60abb503 100644
--- a/main/autoservice.c
+++ b/main/autoservice.c
@@ -93,7 +93,7 @@ static void *autoservice_run(void *ign)
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);