<p>Pau Espin Pedrol has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/11995">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bsc: timeslot_fsm: Switch to error state before dispatching error event to lchans<br><br>This way we receive tear down events such as TS_EV_CLHAN_UNUSED in a state prepared<br>to handle them, as a result from dispatching LCHAN_EV_TS_ERROR previously.<br><br>Change-Id: If61493e7d5449bf2c2de9fd34cdf2410625e92ac<br>---<br>M src/osmo-bsc/timeslot_fsm.c<br>1 file changed, 2 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/95/11995/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/timeslot_fsm.c b/src/osmo-bsc/timeslot_fsm.c</span><br><span>index e3327b7..952df72 100644</span><br><span>--- a/src/osmo-bsc/timeslot_fsm.c</span><br><span>+++ b/src/osmo-bsc/timeslot_fsm.c</span><br><span>@@ -171,9 +171,10 @@</span><br><span>      if (errmsg)</span><br><span>          LOG_TS(ts, LOGL_ERROR, "%s\n", errmsg);</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   ts_lchans_dispatch(ts, LCHAN_ST_WAIT_TS_READY, LCHAN_EV_TS_ERROR);</span><br><span>   if (fi->state != state_chg)</span><br><span>               osmo_fsm_inst_state_chg(fi, state_chg, 0, 0);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+       ts_lchans_dispatch(ts, LCHAN_ST_WAIT_TS_READY, LCHAN_EV_TS_ERROR);</span><br><span> }</span><br><span> </span><br><span> static void ts_fsm_err_ready_to_go_in_pdch(struct osmo_fsm_inst *fi, struct gsm_lchan *lchan)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/11995">change 11995</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/11995"/><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: If61493e7d5449bf2c2de9fd34cdf2410625e92ac </div>
<div style="display:none"> Gerrit-Change-Number: 11995 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </div>