From 848841973a5c5b8d2de336ed32f5b4ab80ca8d79 Mon Sep 17 00:00:00 2001 From: russell Date: Wed, 14 May 2008 21:32:00 +0000 Subject: Add ast_assert(), which can be used to handle fatal errors. It is only compiled in if dev-mode is enabled, and only aborts if DO_CRASH is defined. (inspired by issue #12650) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@116463 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/chan_agent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'channels') diff --git a/channels/chan_agent.c b/channels/chan_agent.c index ae6d093c7..4149f1c7f 100644 --- a/channels/chan_agent.c +++ b/channels/chan_agent.c @@ -1051,7 +1051,7 @@ static struct ast_channel *agent_new(struct agent_pvt *p, int state) if (p->chan) { if (ast_test_flag(p->chan, AST_FLAG_BLOCKING)) { ast_log( LOG_ERROR, "A blocker exists after agent channel ownership acquired\n" ); - CRASH; + ast_assert(0); } } return tmp; -- cgit v1.2.3