Finally track down and eliminate the "FRACK! warnings from chan_iax2".
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@268495 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
47ad8c27f5
commit
7d18dd5394
|
@ -3281,7 +3281,16 @@ static void iax2_destroy(int callno)
|
||||||
|
|
||||||
retry:
|
retry:
|
||||||
if ((pvt = iaxs[callno])) {
|
if ((pvt = iaxs[callno])) {
|
||||||
|
#if 0
|
||||||
|
/* iax2_destroy_helper gets called from this function later on. When
|
||||||
|
* called twice, we get the (previously) familiar FRACK! errors in
|
||||||
|
* devmode, from the scheduler. An alternative to this approach is to
|
||||||
|
* reset the scheduler entries to -1 when they're deleted in
|
||||||
|
* iax2_destroy_helper(). That approach was previously decided to be
|
||||||
|
* "wrong" because "the memory is going to be deallocated anyway. Why
|
||||||
|
* should we be resetting those values?" */
|
||||||
iax2_destroy_helper(pvt);
|
iax2_destroy_helper(pvt);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
owner = pvt ? pvt->owner : NULL;
|
owner = pvt ? pvt->owner : NULL;
|
||||||
|
|
Loading…
Reference in New Issue