aboutsummaryrefslogtreecommitdiffstats
path: root/main/pbx.c
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-09 20:31:51 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-09 20:31:51 +0000
commit89571cdd8c433c6fe2f05ad5c4fe319af8f97c0e (patch)
tree79518e4364ee8d7234f34d5701ffc6d1c41db495 /main/pbx.c
parenta6984bf329c715d85fc04db36f814cc355e8dc21 (diff)
Merged revisions 162266 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r162266 | mmichelson | 2008-12-09 14:30:07 -0600 (Tue, 09 Dec 2008) | 14 lines 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: http://svn.digium.com/svn/asterisk/branches/1.6.1@162269 f38db490-d61c-443f-a65b-d21fe96a405b
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 f0577939d..36d9e93e4 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -4011,6 +4011,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;
}