aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authordvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2009-09-21 17:03:03 +0000
committerdvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2009-09-21 17:03:03 +0000
commit4e906d5181bc39463778e305d5f49242dce370b6 (patch)
tree5619ab2bfe3001e6f72fe1206967d48896636bee /channels
parent27a9d2e18b87b56f59dba79e6fdc3aa2f7191277 (diff)
Merged revisions 219721 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r219721 | dvossel | 2009-09-21 11:59:05 -0500 (Mon, 21 Sep 2009) | 9 lines Merged revisions 219720 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r219720 | dvossel | 2009-09-21 11:55:53 -0500 (Mon, 21 Sep 2009) | 3 lines Reverting merge 219520. This change was not necessary. ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@219724 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_iax2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index e0a482ec8..cc89fc708 100644
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -1493,7 +1493,6 @@ static void iax2_destroy_helper(struct chan_iax2_pvt *pvt)
static void iax2_frame_free(struct iax_frame *fr)
{
AST_SCHED_DEL(sched, fr->retrans);
- fr->retrans = -1;
iax_frame_free(fr);
}
@@ -3165,6 +3164,7 @@ static void __attempt_transmit(const void *data)
AST_LIST_LOCK(&frame_queue);
AST_LIST_REMOVE(&frame_queue, f, list);
AST_LIST_UNLOCK(&frame_queue);
+ f->retrans = -1; /* this is safe because this is the scheduled function */
/* Free the IAX frame */
iax2_frame_free(f);
}