summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--res/res_rtp_asterisk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c
index fb6a5be1b..390fd085a 100644
--- a/res/res_rtp_asterisk.c
+++ b/res/res_rtp_asterisk.c
@@ -3199,8 +3199,8 @@ static int ast_rtcp_write(const void *data)
/*
* Not being rescheduled.
*/
- ao2_ref(instance, -1);
rtp->rtcp->schedid = -1;
+ ao2_ref(instance, -1);
}
return res;