aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-09 20:28:44 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-09 20:28:44 +0000
commit8941df3d797175842a46a9e90e3bc55a54504887 (patch)
tree2302afe674700a01706a4e73b0c7a13b3d8cb9cd
parenta67361aeaec3162da0738cb69b90a46074b58dcc (diff)
If we fail to start a thread for the pbx to run in, we need to
be sure to decrease the number of active calls on the system. This fix may relate to ABE-1713, but it is not certain yet. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@162265 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/pbx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 9a33ebe9f..12d396489 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -2645,6 +2645,7 @@ enum ast_pbx_result ast_pbx_start(struct ast_channel *c)
if (ast_pthread_create(&t, &attr, pbx_thread, c)) {
ast_log(LOG_WARNING, "Failed to create new channel thread\n");
pthread_attr_destroy(&attr);
+ decrease_call_count();
return AST_PBX_FAILED;
}
pthread_attr_destroy(&attr);