diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-05-14 21:41:09 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-05-14 21:41:09 +0000 |
commit | 4ad7fb3e3eb97dfcc2c94fe1f38ce4b0e8642ee9 (patch) | |
tree | 5504856a16a1aec786aed24d36f461bbe58f9fac /channels/chan_agent.c | |
parent | 01a8e6db758145b73234ff8ab26cfd6db20551a0 (diff) |
Merged revisions 116469 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r116469 | russell | 2008-05-14 16:40:43 -0500 (Wed, 14 May 2008) | 12 lines
Merged revisions 116463 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r116463 | russell | 2008-05-14 16:32:00 -0500 (Wed, 14 May 2008) | 4 lines
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.6.0@116470 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_agent.c')
-rw-r--r-- | channels/chan_agent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_agent.c b/channels/chan_agent.c index 20e1fc479..decf022c4 100644 --- a/channels/chan_agent.c +++ b/channels/chan_agent.c @@ -1008,7 +1008,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; |