mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-31 18:55:19 +00:00
Merged revisions 121861 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r121861 | tilghman | 2008-06-11 13:18:16 -0500 (Wed, 11 Jun 2008) | 3 lines Make calls to ast_assert() actually test something, so that the error message printed is not nonsensical (reported by mvanbaak via #asterisk-bugs). ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@121867 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1018,7 +1018,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" );
|
||||
ast_assert(0);
|
||||
ast_assert(ast_test_flag(p->chan, AST_FLAG_BLOCKING) == 0);
|
||||
}
|
||||
}
|
||||
return tmp;
|
||||
|
||||
Reference in New Issue
Block a user