mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
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/branches/1.4@162265 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user