diff --git a/main/pbx.c b/main/pbx.c index 3b5b831e96..b6f702af55 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -3976,6 +3976,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; }