<p>Neels Hofmeyr has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/11310">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gscon_forget_lchan(): Clear Request iff no lchans remain<br><br>Send a BSSMAP Clear Request only if absolutely no lchan remains associated to<br>the conn, anywhere (Assignment, Handover as well as primary lchan).<br><br>Conceivable would be a situation where e.g. we're in handover and a new lchan<br>is ready, when just at a time where it doesn't matter anymore the old lchan<br>fails. We could just carry on with the new one then.<br><br>Change-Id: Ibd8e38ccf7759b8834efdedf742c46c227b26e91<br>---<br>M src/osmo-bsc/bsc_subscr_conn_fsm.c<br>1 file changed, 3 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/10/11310/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/bsc_subscr_conn_fsm.c b/src/osmo-bsc/bsc_subscr_conn_fsm.c</span><br><span>index 3c9be56..a8b3183 100644</span><br><span>--- a/src/osmo-bsc/bsc_subscr_conn_fsm.c</span><br><span>+++ b/src/osmo-bsc/bsc_subscr_conn_fsm.c</span><br><span>@@ -646,7 +646,9 @@</span><br><span>                 conn->lchan = NULL;</span><br><span> </span><br><span>   if (conn->fi->state != ST_CLEARING</span><br><span style="color: hsl(0, 100%, 40%);">-            && !conn->lchan)</span><br><span style="color: hsl(120, 100%, 40%);">+           && !conn->lchan</span><br><span style="color: hsl(120, 100%, 40%);">+            && !conn->ho.new_lchan</span><br><span style="color: hsl(120, 100%, 40%);">+     && !conn->assignment.new_lchan)</span><br><span>               gscon_bssmap_clear(conn, GSM0808_CAUSE_EQUIPMENT_FAILURE);</span><br><span> }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/11310">change 11310</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.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.osmocom.org/11310"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ibd8e38ccf7759b8834efdedf742c46c227b26e91 </div>
<div style="display:none"> Gerrit-Change-Number: 11310 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>