summaryrefslogtreecommitdiff
path: root/main/pbx.c
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2008-12-09 20:30:07 +0000
committerMark Michelson <mmichelson@digium.com>2008-12-09 20:30:07 +0000
commit5f4dc23293000e891ce9fa07f9b198c74e9ac940 (patch)
tree2a8bba9dd0df0b537672a11ab83285499744eed4 /main/pbx.c
parent90f6a8eeeea170e5741da75fba466f4eaae2ba7e (diff)
Merged revisions 162265 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r162265 | mmichelson | 2008-12-09 14:28:44 -0600 (Tue, 09 Dec 2008) | 6 lines 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: https://origsvn.digium.com/svn/asterisk/trunk@162266 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/pbx.c')
-rw-r--r--main/pbx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/pbx.c b/main/pbx.c
index a915e1f40..79ea30edd 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -4481,6 +4481,7 @@ enum ast_pbx_result ast_pbx_start(struct ast_channel *c)
/* Start a new thread, and get something handling this channel. */
if (ast_pthread_create_detached(&t, NULL, pbx_thread, c)) {
ast_log(LOG_WARNING, "Failed to create new channel thread\n");
+ decrease_call_count();
return AST_PBX_FAILED;
}