<p>Robert Mordec <strong>posted comments</strong> on this change.</p><p><a href="https://gerrit.asterisk.org/9026">View Change</a></p><p>Patch set 1:</p><p>(2 comments)</p><ul style="list-style: none; padding-left: 20px;"><li><p><a href="https://gerrit.asterisk.org/#/c/9026/1/apps/app_confbridge.c">File apps/app_confbridge.c:</a></p><ul style="list-style: none; padding-left: 20px;"><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/9026/1/apps/app_confbridge.c@1449">Patch Set #1, Line 1449:</a> <code style="font-family:monospace,monospace"></code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I don't think this channel should be pushed into the bridge at all below if</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I thought the conference could be still alive at this point and its ref counter could drop later, for example during ast_autoservice_start().</p><p style="white-space: pre-wrap; word-wrap: break-word;">It was a safer bet to add the reference check just before cleanup.</p><p style="white-space: pre-wrap; word-wrap: break-word;">But I agree, if the conference is already dead, then everything below is a waste of time. I will add a condition for it and do some testing.</p></li><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/9026/1/apps/app_confbridge.c@1459">Patch Set #1, Line 1459:</a> <code style="font-family:monospace,monospace"> if (ao2_ref(conference, 0) == 1) {</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">And is there a race condition at all where the conference reference count m</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I admit, in my particular case (bug found in production) I didn't focus on finding out if the conference reference count was already decreased at the beginning of this function. I assumed it could decrease at any time during this execution regardless of my case. Correct me if I'm wrong. Is there something I don't see that would prevent it from happening?</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/9026">change 9026</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/9026"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I947a50fb121422d90fd1816d643a54d75185a477 </div>
<div style="display:none"> Gerrit-Change-Number: 9026 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Robert Mordec <r.mordec@slican.pl> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Robert Mordec <r.mordec@slican.pl> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 06 Jun 2018 08:53:31 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>