This is theoretically a potential deadlock, but it's the way it was before so
I'm going to leave it this way for now.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@82776
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
if (flags & (AST_BRIDGE_DTMF_CHANNEL_0 | AST_BRIDGE_DTMF_CHANNEL_1))
return AST_BRIDGE_FAILED_NOWARN;
- ast_channel_lock_both(c0, c1);
+ ast_channel_lock(c0);
+ ast_channel_lock(c1);
p0 = c0->tech_pvt;
p1 = c1->tech_pvt;
/* Here's our main loop... Start by locking things, looking for private parts,
and then balking if anything is wrong */
- ast_channel_lock_both(c0, c1);
+ ast_channel_lock(c0);
+ ast_channel_lock(c1);
p0 = c0->tech_pvt;
p1 = c1->tech_pvt;