dyn PDCH: safeguard: exit if nothing pending in dyn_pdch_ts_disconnected()

The function would currently only be called in cases where one of the if
branches catches on, but for safety's and clarity's sake, don't ts_connect
using as_pchan if no reconnect is pending.

Change-Id: I52c34065254e902bb80662fc04540901b36cb4c3
This commit is contained in:
Neels Hofmeyr 2016-06-21 19:41:30 +02:00 committed by Harald Welte
parent 3f919171ef
commit c2874c4360
1 changed files with 3 additions and 1 deletions

View File

@ -1791,7 +1791,9 @@ void dyn_pdch_ts_disconnected(struct gsm_bts_trx_ts *ts)
gsm_lchan_name(ts->lchan));
ts->lchan[0].type = GSM_LCHAN_PDTCH;
as_pchan = GSM_PCHAN_PDCH;
}
} else
/* No reconnect pending. */
return;
rc = bts_model_ts_connect(ts, as_pchan);
/* Error? then NACK right now. */