diff --git a/main/pbx.c b/main/pbx.c index f0577939df..36d9e93e4f 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; }